Is there any good documentation on installing nightwatch with selenium webdrivers in linux machine RHEL 7 #2640
Replies: 3 comments
-
hey @ravikumar2000 , whats the use case if i may ask? do you want to run your sessions on your local browser? if so just install chrome/firefox browser and drivers And if you are using some remote selenium server or using cloud for testing (browserstack or sauce labs) |
Beta Was this translation helpful? Give feedback.
-
Hi
We are planning to use it for synthetic monitoring to capture web
transactions using gecko or other chrome drivers with Linux servers using
nightwatcher to push the logs to Prometheus.
Regards,
Ravi
…On Wed, 14 Apr, 2021, 6:01 PM Dharin Shah, ***@***.***> wrote:
hey @ravikumar2000 <https://github.com/ravikumar2000> , whats the use
case if i may ask? do you want to run your sessions on your local browser?
if so just install chrome/firefox browser and drivers
npm install chromedriver --save-dev
npm install geckodriver --save-dev
Should warn you, chrome support on RHEL is not that great.
And if you are using some remote selenium server or using cloud for
testing (browserstack or sauce labs)
https://www.browserstack.com/docs/automate/selenium/getting-started/nodejs/nightwatch
https://saucelabs.com/blog/nightwatchjs-makes-software-test-scripts-fun-and-easy
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2640 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACDBRQ2FMMDK5DZ6RDIYVHDTIWDJ7ANCNFSM425JQGAQ>
.
|
Beta Was this translation helpful? Give feedback.
-
I recommend using Selenium Grid for running e2e tests in CI |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
Sample test
sampleTest.js
Run with command
Verbose output
debug.log
Configuration
nightwatch.json
{
"src_folders": ["tests"],
"output_folder": "reports/XMLReports",
"custom_commands_path": "",
"custom_assertions_path": "",
"page_objects_path": "pages",
"selenium": {
"start_process": true,
"server_path": "lib/drivers/selenium-server-standalone-3.10.0.jar",
"start_session": true,
"log_path": "log/",
"host": "127.0.0.1",
"port": 4444,
"cli_args": {
"webdriver.chrome.driver": "node_modules/.bin/chromedriver"
}
},
"test_settings" : {
"chrome": {
"launch_url": "http://localhost",
"selenium_port": 4444,
"selenium_host": "localhost",
"silent": true,
"screenshots": {
"enabled": false,
"path": "screenshots/Chrome/"
},
"desiredCapabilities": {
"browserName": "chrome",
"chromeOptions": {
"args": [
"disable-web-security",
"ignore-certificate-errors",
"--test-type"
]
}
}
},
}
Beta Was this translation helpful? Give feedback.
All reactions