开发者

Webdriver/Selenium 2.0 API not working with Firefox 4

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜