I'm new in NightWatch, so I followed several Tutorials, I did everything they said, but now I am getting a blank page with the header "data;", instead of the page I wanna see wich is "https://www.ghandi.com.mx".
This is the json file. It seems like this problem is about the json configuration. Any help? Thanks so much!
{
"src_folders" : ["tests"],
"output_folder" : "reports",
"selenium": {
"start_process": true,
"start_session" : true,
"server_path": "C:\\Users\\Esau Alvarez\\Desktop\\selenium-server-standalone-3.13.0.jar",
"port": 4444,
"cli_args": {
"webdriver.chrome.driver": "C:\\Users\\Esau Alvarez\\Desktop\\chromedriver.exe"
}
},
"test_settings" : {
"default": {
"launch_url": "https://www.gandhi.com.mx/",
"screenshots": {
"enabled": false
},
"desiredCapabilities": {
"browserName": "chrome",
"marionette": true
}
},
"chrome" : {
"desiredCapabilities": {
"browserName": "chrome",
"webdriver": {
"server_path": "C:\\Users\\Esau Alvarez\\Desktop\\NightWatch\\chromedriver.exe"
}
}
}
}
}
This is my test file
module.exports = {
"Test": function (browser) {
browser
.windowMaximize()
.url("https://www.gandhi.com.mx/")
.waitForElementVisible('body', 1000)
}
}
Aucun commentaire:
Enregistrer un commentaire