简体   繁体   English

Ruby 1.8.7上的Selenium-webdriver

[英]Selenium-webdriver on Ruby 1.8.7

Is there a setting where you can update the homepage when it opens a new browser? 有没有设置可以在打开新浏览器时更新主页?

For newer version of selenium-webdriver , it actually opens a blank page. 对于较新版本的selenium-webdriver ,它实际上会打开一个空白页面。 This is what i need right now, but i cant use it since the website im working is on 1.8.7 . 这是我现在需要的,但是由于网站正在运行1.8.7 ,所以我无法使用它。

Im having problems with the older version because it opens a page and timeouts because I'm using a machine without an internet. 我在使用旧版本时遇到问题,因为它打开了页面并超时,因为我使用的是没有互联网的机器。 (I need to use this machine) (我需要使用这台机器)

I'm currently working with phantomJS btw. 我目前正在使用phantomJS btw。 I checked it with firefox , it opens mozilla.org even though my default page in firefox is a blank page. 我用firefox检查了它,即使我在firefox中的默认页面是空白页面,它也会打开mozilla.org。

The .start(url,browser) doesn't work since it will open first the browser before going to the url . .start(url,browser)不起作用,因为它将在转到url之前先打开浏览器。

Already fine with phantomjs . 已经可以使用phantomjs I thought it was an issue with an older version. 我认为这是旧版本的问题。 In phantomjs, it really opens a blank page. 在phantomjs中,它实际上会打开一个空白页面。

Newer version of selenium-webdriver , starts firefox with a blank page. 较新版本的selenium-webdriver ,以空白页启动Firefox。 While the lower version I use still have issues firefox. 虽然我使用的较低版本仍然存在问题Firefox。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM