本文介绍了网页已经打开(源格式);只需使用Selenium阅读该文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
假设我在浏览器中已经打开了一个选项卡.它的网址是:
Let's say I have a tab already open in the browswer. Its URL is:
view-source:http://www.google.com/webhp?source=search_app
现在它已经打开并显示了,我只想阅读客户端窗口中的文本. (获取页面的上下文,或获取其对象(与创建新的浏览器对象相对),等等.然后只需阅读页面即可.)
Now that it's already open and displayed, I just want to read the text that's in the client window. (Get a context to the page, or obtain its object (as opposed to creating a new browser object), or whatever. Then just read the page.)
在Selenium,Splinter中是否有任何方法可以做到这一点?感谢您的帮助.
Is there any methodology in Selenium, Splinter that allows for that? Thanks for any help.
推荐答案
如果您询问是否可以附加到已经打开的浏览器,那么我相信答案是否".
If you are asking if you can attach to an already open browser, then I believe the answer is "No".
这篇关于网页已经打开(源格式);只需使用Selenium阅读该文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!