问题标签 [webdriver-manager]
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.
protractor - 使用 Protractor 5.4.2 时,webdriver-manager 下载与 Chrome 74 不兼容的 2.46
Protractor 5.4.2 使用下载 Chromedriver 2.46 的 webdriver-manager 12。Chromedriver 2.46 支持 Chrome 71-73(参见http://chromedriver.chromium.org/downloads)。我们需要下载 Chromedriver 74.0.3729.6。
我还看到有一个 webdriver-manager@13 支持这一点。我应该将它与 Protractor 5.4.2 一起使用吗?
protractor - 升级到 webdriver-manager 12.1.4 后,directConnect 选项不起作用
我曾经使用 directConnect: true 选项集运行量角器测试。我当时的chromedriver是chromedriver2.46
现在用最新的webdriver-manaegr12.1.4,chromedriver升级到ChromeDriver 74.0.3729.6 (255758eccf3d244491b8a1317aa76e1ce10d57e9-refs/branch-heads/3729@{#29})
如果我仍然继续使用directConnect: true
并运行我的测试,我会收到以下错误
session not created: This version of ChromeDriver only supports Chrome version 75
(Driver info: chromedriver=75.0.3770.8 (681f24ea911fe754973dda2fdc6d2a2e159dd300-refs/branch-heads/3770@{#40}),platform=Mac OS X 10.14.4 x86_64)
selenium - 第一次在容器上运行 Protractor 失败并出现错误
我正在运行 Protractor Sample 应用程序,但它在容器上失败。我在物理机器上尝试了相同的应用程序,它按预期工作并通过了测试用例。
我的测试代码:-->CheckTitleSpec.js
conf.js 文件
用于构建容器的 Docker 文件:
在容器上,输出是:
我在无头物理 Linux 机器上测试了相同的代码,它按预期工作。
非常感谢任何线索。
谢谢你。
protractor - 如何修复“错误:getaddrinfo ENOTFOUND selenium-release.storage.googleapis.com selenium-release.storage.googleapis.com:443”
我是量角器的新手。使用“npm install -g protractor”安装后,当我尝试运行“webdriver-manager update”命令时,出现以下错误。
命令提示符的错误日志 -
C:\Users\USER##\AppData\Roaming\npm>webdriver-manager 更新
[15:50:38] E/start - Selenium Standalone 不存在。使用 webdriver-manager update --standalone 安装
C:\Users\USER##\AppData\Roaming\npm>webdriver-manager update --standalone [15:50:54] I/config_source - curl -oC:\Users\USER##\AppData\Roaming\npm\ node_modules\protractor\node_modules\webdriver-manager\selenium\standalone-response.xml https://selenium-release.storage.googleapis.com/ [15:50:54] I/config_source - curl -oC:\Users\USER ##\AppData\Roaming\npm\node_modules\protractor\node_modules\webdriver-manager\selenium\chrome-response.xml https://chromedriver.storage.googleapis.com/
[15:50:54] I/config_source - curl -oC:\Users##\USER\AppData\Roaming\npm\node_modules\protractor\node_modules\webdriver-manager\selenium\gecko-response.json https://api .github.com/repos/mozilla/geckodriver/releases
事件.js:183
错误:getaddrinfo ENOTFOUND selenium-release.storage.googleapis.com selenium-release.storage.googleapis.com:443
selenium - webdriver-manager update 命令总是第一次失败,但之后通过
当我webdriver-manager update
第一次执行时,我总是看到以下错误
但是,每当我再次运行它时,它总是会成功执行。我只在我现在的公司经历过这种情况,而且我知道它也发生在其他同事身上,所以我认为它一定是代理,但无法理解它是如何成功通过的。
任何关于如何更好地解决我的问题的解决方案或建议将不胜感激。
注意:我正在使用 powershell 执行命令
protractor - 量角器 - 未找到日志类型“性能”错误
网络驱动程序管理器 12.1.5
量角器版本 5.4.2
Chrome 版本 75.0.3770.100
在升级我的 webdriver-manager 和量角器版本之前,这曾经可以正常工作。
如果我评论 browser.manage().logs().get('performance'); 和其他与性能相关的代码,然后测试运行良好。
webdriver-manager 日志显示:
c# - UnauthorizedAccessException 试图访问 AWS Lambda 上的 /tmp
我正在尝试使用 AWS Lambda 上的 /tmp 文件夹通过 WebDriverManager 下载和执行 Chrome Selenium webdriver,但我不断收到 UnauthorizedAccessException 试图访问 /tmp。我认为 /tmp 可以用于这种事情,但谷歌似乎没有提供任何帮助,这是我的代码:
我的例外
有没有人成功地使用 DriverManager 在 AWS Lambda 上运行无头 chrome 实例?将不胜感激一些指针。
TIA
富有的
selenium-webdriver - Gecko 驱动程序没有完全执行测试用例
下面是我正在使用的依赖版本:
WebDriverManager-versioned 3.6.1
(Gecko 驱动程序版本0.24.0)
Firefox 版本68.0.1 64 位 Windows 10
硒版本3.141.59
我有一个 maven -selenium 项目,在 testNG 中有 10 多个测试类。
当我在 Chrome 浏览器上执行这些类时,每个测试类都会成功执行。
当我使用(WebDriverManager-Gecko 驱动程序)在 Firefox 上执行相同的测试类时,测试类执行一段时间,比如 5-10 秒,然后突然关闭并打开下一个测试类执行,即使这个测试类执行了一段时间然后关闭。每个测试类都会发生同样的事情。
我已尝试手动使用 geckodriver.exe 并设置系统属性,但仍然无法修复错误
下面是我用于 WebDriverManager 的代码
selenium - Having same protractor version in package.json installing different chrome driver versions?
I am confused with the protractor versions and how exactly it works.
so there are two different node projects which I have created, and I am using protractor versions "protractor": "~5.4.0"
in both of my projects.
When I am trying to run command npm run e2e
one project is installing chrome driver version 2.46
[15:12:36] I/downloader - curl -o/home/circleci/project/node_modules/protractor/node_modules/webdriver-manager/selenium/chromedriver_2.46.zip https://chromedriver.storage.googleapis.com/2.46/chromedriver_linux64.zip
[15:12:36] I/update - chromedriver: unzipping chromedriver_2.46.zip
[15:12:36] I/update - chromedriver: setting permissions to 0755 for /home/circleci/project/node_modules/protractor/node_modules/webdriver-manager/selenium/chromedriver_2.46
[15:12:36] I/launcher - Running 1 instances of WebDriver
[15:12:36] I/direct - Using ChromeDriver directly...
{
"name": "solutions-web",
"version": "0.0.0",
"license": "MIT",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"build:prod": "ng build --prod --build-optimizer",
"test": "ng test",
"test:deployment": "ng test --watch=false --no-progress --code-coverage",
"lint": "ng lint",
"e2e": "ng e2e"
},
"private": true,
"dependencies": {
"@angular/animations": "~7.2.0",
"@angular/common": "~7.2.0",
"@angular/compiler": "7.2.0",
"@angular/core": "~7.2.0",
"@angular/forms": "~7.2.0",
"@angular/http": "~7.2.0",
"@angular/platform-browser": "~7.2.0",
"@angular/platform-browser-dynamic": "~7.2.0",
"@angular/router": "~7.2.0",
"angular-web-storage": "^7.0.0-beta.1",
"bluebird": "^3.5.5",
"classlist.js": "^1.1.20150312",
"core-js": "^2.6.2",
},
"devDependencies": {
"@angular-devkit/build-angular": "~0.12.0",
"@angular/cli": "~7.2.0",
"@angular/compiler-cli": "~7.2.0",
"@angular/language-service": "~7.2.0",
"@types/jasmine": "~3.3.5",
"@types/jasminewd2": "~2.0.6",
"@types/node": "~10.12.18",
"codelyzer": "~4.5.0",
"jasmine-core": "~3.3.0",
"jasmine-data-provider": "~2.2.0",
"jasmine-spec-reporter": "~4.2.1",
"karma": "~3.1.4",
"karma-chrome-launcher": "~2.2.0",
"karma-coverage-istanbul-reporter": "~2.0.4",
"karma-jasmine": "~2.0.1",
"karma-jasmine-html-reporter": "^1.4.0",
"lodash": "^4.17.11",
"protractor": "~5.4.0",
"tiny-date-picker": "^3.2.8",
"ts-node": "~7.0.0",
"tslint": "~5.12.0",
"typescript": "~3.2.2"
}
Another project is installing chrome driver version _75.0.3770.140
[14:40:30] I/config_source - curl -o/home/circleci/project/node_modules/protractor/node_modules/webdriver-manager/selenium/chrome-response.xml https://chromedriver.storage.googleapis.com/
[14:40:30] I/downloader - curl -o/home/circleci/project/node_modules/protractor/node_modules/webdriver-manager/selenium/chromedriver_75.0.3770.140.zip https://chromedriver.storage.googleapis.com/75.0.3770.90/chromedriver_linux64.zip
[14:40:31] I/update - chromedriver: unzipping chromedriver_75.0.3770.140.zip
[14:40:31] I/update - chromedriver: setting permissions to 0755 for /home/circleci/project/node_modules/protractor/node_modules/webdriver-manager/selenium/chromedriver_75.0.3770.140
[14:40:31] I/launcher - Running 1 instances of WebDriver
[14:40:31] I/direct - Using ChromeDriver directly...
{
"name": "web-project",
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
},
"private": true,
"dependencies": {
"@angular/animations": "~7.1.0",
"@angular/common": "~7.1.0",
"@angular/compiler": "~7.1.0",
"@angular/core": "~7.1.0",
"@angular/forms": "~7.1.0",
"@angular/platform-browser": "~7.1.0",
"@angular/platform-browser-dynamic": "~7.1.0",
"@angular/router": "~7.1.0",
"core-js": "^2.5.4",
"rxjs": "~6.3.3",
"tslib": "^1.9.0",
"zone.js": "~0.8.26"
},
"devDependencies": {
"@angular-devkit/build-angular": "~0.11.0",
"@angular/cli": "~7.1.0",
"@angular/compiler-cli": "~7.1.0",
"@angular/language-service": "~7.1.0",
"@types/node": "~8.9.4",
"@types/jasmine": "~2.8.8",
"@types/jasminewd2": "~2.0.3",
"webpack-dev-server": ">=3.1.11",
"codelyzer": "~4.5.0",
"jasmine-core": "~2.99.1",
"jasmine-spec-reporter": "~4.2.1",
"karma": "~3.1.1",
"karma-chrome-launcher": "~2.2.0",
"karma-coverage-istanbul-reporter": "~2.0.1",
"karma-jasmine": "~1.1.2",
"karma-jasmine-html-reporter": "^0.2.2",
"protractor": "~5.4.0",
"ts-node": "~7.0.0",
"tslint": "~5.12.0",
"typescript": "~3.1.6"
}
}
how is this possible when I am giving the same protractor version? can someone help me to understand the process and help me to overcome this issue?