Selenium Chrome 驱动程序无法解析 getElementRegion 的值 [英] Selenium Chrome driver failed to parse value of getElementRegion

查看:32
本文介绍了Selenium Chrome 驱动程序无法解析 getElementRegion 的值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用 chrome 驱动程序运行 selenium 测试时,我从 chrome 驱动程序收到以下错误.测试在 Firefox 下运行良好.

I get the following error from chrome driver when running my selenium tests with chrome driver. The test works fine with firefox.

未知错误:无法解析 getElementRegion 的值

unknown error: failed to parse value of getElementRegion

这是代码,尝试单击提交按钮时失败.我使用 selenium-standalone 来运行我的服务器,使用 selenium-standalone start --drivers.chrome.version=2.8 和 webdriverIO

Here's the code, it fails when trying to click the submit button. I'm using selenium-standalone to run my server, specifying chromedriver with selenium-standalone start --drivers.chrome.version=2.8 and webdriverIO

client
    .url(options.url)
    .setValue(usernameSelector, username)
    .setValue(passwordSelector, password)
    .click(submitBtnSelector)

推荐答案

我通过删除量角器配置的 conf.js 文件中的 SELENIUM_PROMISE_MANAGER: false 行解决了同样的问题.

I solved the same problem by deleting the line SELENIUM_PROMISE_MANAGER: false in my conf.js file on my protractor configuration.

这篇关于Selenium Chrome 驱动程序无法解析 getElementRegion 的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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