空手道UI&;Selenium独立服务器输入命令不工作
我正在本地运行selenium standalone server,并尝试对其运行此示例功能空手道UI&;Selenium独立服务器输入命令不工作,selenium,karate,Selenium,Karate,我正在本地运行selenium standalone server,并尝试对其运行此示例功能 Scenario: try to login to github and then do a google search Given driver 'https://github.com/login' And input('#login_field', 'dummy') And input('#password', 'world') When submit().click("input[name=com
Scenario: try to login to github and then do a google search
Given driver 'https://github.com/login'
And input('#login_field', 'dummy')
And input('#password', 'world')
When submit().click("input[name=commit]")
Then match html('#js-flash-container') contains 'Incorrect username or password.'
Given driver 'https://google.com'
And input("input[name=q]", 'karate dsl')
When submit().click("input[name=btnI]")
Then waitForUrl('https://github.com/intuit/karate')
我已经这样配置了我的驱动程序
* configure driver = { type: 'chromedriver', start: false, webDriverUrl: 'http://localhost:4444/wd/hub' }
Chromedriver正在运行:
ChromeDriver 2.46.628411 on port 9515
chrome浏览器显示并导航到Google。输入命令/方法尝试写入登录id和密码,然后单击提交按钮。测试预期的错误消息确实显示,因此测试通过
问题是在这种配置下运行时,输入命令/方法会尝试。它不会在适当的字段中输入dummy或world,它们只是保留为空
如果我使用此驱动程序配置运行该功能*configure driver={type:'chrome',showDriverLog:true}
它工作得很好
我不太熟悉这种配置,刚刚开始使用空手道用户界面,但我们确实在其他项目中使用selenium单机服务器和chromedriver,没有遇到这个问题
我确实在寻找解决方案,但没有找到任何有用的
以前是否有其他人遇到过此问题?如果是,您是如何解决的
谢谢很好,您可以使用旧版本的Selenium服务器。刚刚检查过,这适用于Chrome/ChromeDriver 83
如果您可以遵循以下流程,这将有所帮助:很好,您可以使用旧版本的Selenium服务器。刚刚检查过,这适用于Chrome/ChromeDriver 83 如果您可以遵循以下流程,则会有所帮助: