Closed ituradastra closed 4 years ago
w3c: false
Also seeing this issue. Very blocking.
node@12.8 chromedriver@75.0.1 selenium-server@3.141.59
Error while running .isElementDisplayed() protocol action: TypeError [ERR_UNESC APED_CHARACTERS]: Request path contains unescaped characters at new ClientRequest (_http_client.js:140:13) at Object.request (http.js:44:10) at HttpRequest.createHttpRequest (C:\Users\UserName\Desktop\git-repos\pr edictive-demo-webui\node_modules\nightwatch\lib\http\request.js:112:55) at HttpRequest.send (C:\Users\UserName\Desktop\git-repos\predictive-demo -webui\node_modules\nightwatch\lib\http\request.js:191:29) at C:\Users\UserName\Desktop\git-repos\predictive-demo-webui\node_module s\nightwatch\lib\transport\transport.js:208:15 at new Promise () at Selenium2Protocol.sendProtocolAction (C:\Users\UserName\Desktop\git-r epos\predictive-demo-webui\node_modules\nightwatch\lib\transport\transport.js:20 6:12) at Selenium2Protocol.runProtocolAction (C:\Users\UserName\Desktop\git-re pos\predictive-demo-webui\node_modules\nightwatch\lib\transport\jsonwire.js:55:1 7) at Object.target. [as isElementDisplayed] (C:\Users\UserName\D esktop\git-repos\predictive-demo-webui\node_modules\nightwatch\lib\transport\act ions.js:46:33) at Selenium2Protocol.executeProtocolAction (C:\Users\UserName\Desktop\gi t-repos\predictive-demo-webui\node_modules\nightwatch\lib\transport\transport.js :451:48) at CommandInstance.checkElementVisible (C:\Users\UserName\Desktop\git-re pos\predictive-demo-webui\node_modules\nightwatch\lib\api\element-commands\_wait ForElement.js:276:20) at CommandInstance.elementFound (C:\Users\UserName\Desktop\git-repos\pre dictive-demo-webui\node_modules\nightwatch\lib\api\element-commands\waitForEleme ntVisible.js:44:17) at C:\Users\UserName\Desktop\git-repos\predictive-demo-webui\node_module s\nightwatch\lib\api\element-commands\_waitForElement.js:258:21 at processTicksAndRejections (internal/process/task_queues.js:85:5) --
Config:
const seleniumServer = require('selenium-server'); const chromedriver = require('chromedriver'); const SCREENSHOT_PATH = './screenshots/'; module.exports = { "src_folders": [ "test/nightwatch-tests"// Where you are storing your Nightwatch e2e tests ], "output_folder": "./reports", // reports (test outcome) output by nightwatch "selenium": { "start_process": true, // tells nightwatch to start/stop the selenium process "server_path": seleniumServer.path, "host": "127.0.0.1", "port": 4444, // standard selenium port "cli_args": { "webdriver.chrome.driver" : chromedriver.path }, 'w3c':false }, "test_settings": { "default": { "screenshots": { "enabled": true, // if you want to keep screenshots "path": SCREENSHOT_PATH // save screenshots here }, "globals": { "waitForConditionTimeout": 20000 // sometimes internet is slow so wait. }, "desiredCapabilities": { // use Chrome as the default browser for tests "browserName": "chrome" } }, "chrome": { "desiredCapabilities": { "browserName": "chrome", "javascriptEnabled": true // turn off to test progressive enhancement } } } }
w3c: false
solved my problem
I wasn't sure where exactly I should put it, so I'm gonna share the config that worked for me
"test_settings" : {
"default" : {
"desiredCapabilities" : {
"browserName" : "chrome",
"chromeOptions": {
"args" : ["--no-sandbox"],
"w3c": false
},
"loggingPrefs": {"driver": "INFO", "server": "OFF", "browser": "INFO"}
}
}
}
w3c: false
solved my problem I wasn't sure where exactly I should put it, so I'm gonna share the config that worked for me"test_settings" : { "default" : { "desiredCapabilities" : { "browserName" : "chrome", "chromeOptions": { "args" : ["--no-sandbox"], "w3c": false }, "loggingPrefs": {"driver": "INFO", "server": "OFF", "browser": "INFO"} } } }
This also solved the problem on our end. Thanks for the work around.
Thanks a lot guys..this worked for me as well just after adding "w3c": false in nightwatch.json file.
w3c: false only can solve the issue on chrome
but how to solve the issue on other browsers?
This issue has been automatically marked as stale because it has not had any recent activity. If possible, please retry using the latest Nightwatch version and update the issue with any relevant details. If no further activity occurs, it will be closed. Thank you for your contribution.
Test can not be executed ,If I want to specify the 'browserstack.selenium_version' :'3.14.0' property in desiredCapabilities(The error won't appear if I specify other version like 2.53.0 'browserstack.selenium_version' :'2.53.0'). The following error is returned:
nightwatch-api version: 2.3.0 nightwatch- version: 1.1.12 chrome driver version:75.0.0
Here is my config file