robotframework - 机器人框架中的自动化

标签 robotframework geckodriver selenium2library

我编写了一个简单的测试用例来打开 Firefox 浏览器并转到“https://www.google.co.in”。我收到此错误。

enter image description here

测试脚本

*** Settings ***
Library           Selenium2Library

*** Test Cases ***  
case1
        Open Browser    https://www.google.co.in/    ff

最佳答案

要在 Firefox 中运行,我们需要 geckodriver。将 geckodriver 放入 C:/python/scripts 中,然后尝试运行脚本。 要在 Chrome 中运行,请将 Chrome 驱动程序 X32 放入 C:/python/scripts 中,然后运行脚本

关于robotframework - 机器人框架中的自动化,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42965404/

相关文章:

robotframework - Robot Framework - Selenium2Library - 根据之前的文本将文本输入到字段中

testing - Robot Framework - 使用相对路径从不同的目录变体运行测试

selenium - 给定的 Geckodriver 版本支持哪些 Firefox 浏览器版本?

java - Selenium : org. openqa.selenium.ElementNotInteractableException:

javascript - 有没有办法将 WebElement 传递给 Robot 中的 javascript?

python - 机器人框架如何获取不同国家的不同时区和区域设置?

nested-loops - Robot Framework 的数据驱动场景

c# - 让 Selenium 在 C# Latest 3.9.0 上与 Firefox 驱动程序一起工作

robotframework - 当元素没有 id 或 name 时,如何在机器人框架中使用 Click Element 功能?

selenium - 无法使用 Robot Framework 和 selenium2library 单击复选框