使用Ruby的Selenium WebDriver中的setSpeed [英] setSpeed in Selenium WebDriver using Ruby

查看:134
本文介绍了使用Ruby的Selenium WebDriver中的setSpeed的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一种方法可以设置红宝石中Selenium Webdriver的执行速度.

Is there a way to set the Selenium Webdriver execution speed in ruby.

硒1(RC)的perl中有$sel->set_speed("500");

In perl for selenium 1(RC) there was $sel->set_speed("500");

但是由于Selenium RC的某些限制,我不得不转向Selenium Webdriver,不得不开始使用Ruby,而我找不到相同的功能.

But due to some constraints of Selenium RC, I had to shift to Selenium Webdriver and had to start using Ruby, and I cannot find the function for the same.

在某些地方读取选项"Slow","Medium"和"Fast"作为在C#和Perl中设置速度的参数,而在Ruby中则不然.

Read somewhere the options "Slow", "Medium" and "Fast" as arguments to set speed in C# and Perl, but not in Ruby.

注意-我确实为此@driver.manage.timeouts.implicit_wait = 30设置了超时,但是我正在寻找执行速度.

Note - I do have timeouts set with this @driver.manage.timeouts.implicit_wait = 30 but i am looking for execution speed.

推荐答案

前一段时间,所有语言绑定都已弃用了在WebDriver中设置执行速度的方法.不再可能修改正在运行的WebDriver代码的执行速度.

The methods to set the execution speed in WebDriver were deprecated for all language bindings some time ago. It is no longer possible to modify the execution speed of the running WebDriver code.

这篇关于使用Ruby的Selenium WebDriver中的setSpeed的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆