问题标签 [rautomation]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
ruby - 无法使用 rautomation 找到系统弹出窗口的按钮
我正在使用 Selenium WebDriver 和 rautomation 编写测试来处理系统弹出窗口。我在 irb 上试过如下:
ok_button.exists?和cancel_button.exists?正在返回错误。因此我无法点击按钮。
我也试过:
查找按钮的数量,但它返回 0。
有人可以帮我为什么使用 rautomation 检测不到按钮吗?如果我做错了什么,请纠正我。
这是一个弹出窗口:
ruby - 自动化 Web 界面测试和锁定屏幕
我正在使用我的桌面自动从使用 RAutomation 和 Watir 的站点获取文件。如果有的话,我找不到任何关于 RAutomation 如何在锁定屏幕上工作的信息。可能有更好的方法可以做到这一点,但我现在更想知道是否可以通过 RAutomation 自动发送密钥仍然有效,或者不仅仅是因为锁定屏幕。
rautomation - 如何使用 Rautomation(适配器 msuia)自动化 splitButton
我正在尝试使用 Rautomation 自动化 IE11 通知栏(下载文件时)。使用 MSUIA 适配器,我能够捕捉到保存按钮。但我想使用另存为来提供文件位置和名称。但我不能那样做。
当使用 UIspy 看到时,我看到有一个名为“保存”的拆分按钮。此拆分按钮有另一个名为“”的子拆分按钮(基本上是向下箭头)-我无法访问此控件。
在这一行出现错误 mycontrol2= mycontrol.control(:children_only => true)
知道如何克服这个障碍吗?
我知道应该有一个与 splitButton 关联的菜单和菜单项,当我单击保存之外的向下箭头时,在 UISpy 我看到菜单/菜单项直接在桌面窗口下创建(尽管 processID 相同) - 如何抓住菜单项另存为?
ruby - .NET 表单上 Web 控件的 Ruby 自动化测试
我正在尝试使用 Ruby 自动化来测试通过 .NET 表单上的 Web 控件而不是典型浏览器(如 Internet Explorer、Firefox 等)显示的 Web 应用程序,但我运气不佳.
当通过 Internet Explorer 显示网页时,我可以使用 Watir gem 访问所有元素。但是,如果应用程序是使用带有某种 web 控件的 .NET vb 表单来显示网站的,那么如何访问网页上的元素呢?有没有办法使用 RAutomation 或 Watir gem 来访问 web 元素?或者有没有人有任何其他可能对我有用的建议?
ruby - Handling Chrome client certificates in Watir tests
I have an application with client-certificate based authentication which I have been trying to automate. By selecting different certificates the user can get different application rights. The idea is to use watir-webdriver
based script and rautomation
gem and login into the application. In Chrome web browser it looks pretty much like this:
The basic idea is the following:
However, when the script executes and reaches b.goto 'https://example.com'
it is stuck because the page is not loaded until certificate is selected. After 60 seconds this results in client timeout and I get a Net::ReadTimeout
exception. Thus, the code for certificate selection is never reached.
I have solved this by catching the Net::ReadTimeout
exception:
This solution is far from optimal as the script has to wait 60 seconds to start the execution. The timeout can be lowered to reasonable wait times with the following piece of code:
But for the rest of the script client.timeout
of 5 seconds would be far too low.
I thought the problem was with goto
so I've tried other methods but it seems they all behave in the same way:
Can anyone provide me with an optimization advice or some other optimal way to handle the mentioned client certificates?
watir-webdriver - 使用 Rautomation 和 autoit 适配器将控件返回到 watir-webdriver 中的浏览器弹出窗口
我正在开发一个模式对话框,它可以帮助我将外部文件上传到 Web 应用程序。到目前为止,我可以将外部文件添加到应用程序的上传弹出窗口中。但是,我正在努力将控制权从模态对话框恢复到上传弹出窗口。这是弹出 div 元素的定位器
通过使用上面的“aria-labelledby”属性,我能够获得弹出窗口并启动模态对话框。但是,在选择文件并单击“打开”按钮后模式对话框关闭后,我没有将焦点/控件返回到弹出窗口。任何人都可以请指导我。以下是我处理模态的方式
ruby - 如何在 Rautomation 中发送“ALT”+“S”?
如何使用 RAutomation 将“ALT”+“s”键发送到窗口?谷歌里根本没有信息。
ruby - Ruby - SeleniumGrid - 如何在 selenium 网格中处理窗口弹出(文件-> 浏览)
元 -
预期行为 -
下面的代码点击“浏览文件”并打开窗口弹出浏览文件并提交应该适用于 Selenium 和 Selenium Grid
HTML 代码
Ruby Capybara R自动化代码
然后我单击带有文本“浏览文件”的标签“跨度”-单击浏览按钮有效
在弹出窗口中选择文件的代码
实际行为 -
上面的代码适用于 Selenium,不适用于 SeleniumGrid
错误信息
重现步骤 -
单击任何应用程序中的浏览文件功能(无法提供指向我们应用程序的链接)例如:https ://uploadfiles.io/ 在窗口弹出窗口中输入文件路径浏览文件窗口弹出窗口
ruby - RAutomation 拖动鼠标并选择文本
我正在使用 Ruby gem Rautomation 来测试基于 Windows 的应用程序。该应用程序在远程 Citrix 服务器后面运行,因此我无法以通常的方式与该应用程序交互。我无法使用诸如 windows inspect.exe 之类的刮刀访问应用程序上的任何元素。我想做的是使用键盘和/或鼠标在应用程序上选择文本,然后将其复制到文件中以进行验证。
这是我想做的代码片段:
或者
我想做的是拖动鼠标来选择这个应用程序上的一段文本,或者选择一些文本的开头,按住 shift,然后选择我需要的文本的结尾。基本上是通过 Rautomation 复制用户在现实生活中选择和复制文本的方式。这可能吗?
谢谢
r - 在 R 中每天同时运行任务调度程序
拜托,有人可以帮我设置一个脚本在每天晚上 11:00 自动运行吗?我找到了包“taskscheduleR”,但我不知道如何用它运行我的脚本。
提前致谢!
taskschedulerR 示例:
我的剧本