开发者

How to convert Ruby code using Selenium into Selenese script?

开发者 https://www.devze.com 2023-02-05 21:41 出处:网络
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?

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

精彩评论

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