三十一、使用页面的文字内容识别和处理新弹出的浏览器窗口

被测试网页的HTML源码:

 1 <html>
 2 <head>
 3 <meta charset="UTF-8" content="text/html">
 4 <title>你喜欢的水果</title>
 5 </head>
 6 <body>
 7     <p id="p1">你爱吃的水果么?</p>
 8     <br><br>
 9     <a href="http://www.sogou.com" target="_blank">sogou搜索</a>
10 </body>
11 </html>
View Code

相关文章: