开发者

How to convert Ruby code using Selenium into Selenese script?

How can I conv开发者_JAVA技巧ert Ruby code using Selenium commands into Selenese script?

For example, how could I get the Selenese version of the following Ruby code?

@driver = Selenium::WebDriver.for:firefox # firefox,ie,chrome
@driver.navigate.to "http://www.google.com"

ele =@driver.find_element(:name,'q')
ele.send_keys "Technologies"
ele.submit 


Did you use Selenium IDE, the Firefox plugin ? you can convert Selenium test into an other language script : Ruby, test jUnit, TestNG !

But i am not sure you can do Ruby to Selenium.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜