使用 Ruby 在 Selenium WebDriver 中设置速度 [英] setSpeed in Selenium WebDriver using Ruby

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

问题描述

有没有办法在 ruby​​ 中设置 Selenium Webdriver 的执行速度.

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

在 perl for selenium 1(RC) 中有 $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.

在某处阅读选项慢"、中"和快"作为参数,以在 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 中设置速度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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