开发者

Webdriver/Selenium 2.0 API not working with Firefox 4

开发者 https://www.devze.com 2023-03-14 05:40 出处:网络
Should I be doing anything different if I am using Selenium2.0/WebDriver with Firefox 4? I have code that works with Firefox 3.x(3.8 I guess) but the same code does not work with FIrefox 4.0 on Windo开

Should I be doing anything different if I am using Selenium2.0/WebDriver with Firefox 4? I have code that works with Firefox 3.x(3.8 I guess) but the same code does not work with FIrefox 4.0 on Windo开发者_开发技巧ws 7 Home.

My Page object:

@FindBy(how= How.LINK_TEXT, using="Add Program")
@CacheLookup
private WebElement addProgram;

HTML :

<div class="form_btn"><a
    href="/programs/program/addProgram"> <span>Add
Program</span></a></div>

I am using PageFactory for initialization. The same HTML/CSS and Java code works for Firefox. 3.x

Thanks, Chris.


It's not going to work with firefox 4 jssh in firefox 4 You'll need to use a different method like watir webdriver

For a firefox addon you'll just have to wait till the developers release a different addon.

0

精彩评论

暂无评论...
验证码 换一张
取 消