nightwatchjs / nightwatch-docs

Source for https://nightwatchjs.org website
https://nightwatchjs.org
MIT License
95 stars 193 forks source link

Update documentation #20

Open IndraniBiswas opened 8 years ago

IndraniBiswas commented 8 years ago

Its hard to navigate/search through the documentation when new features have been added or solution added but not enough information added in documentation.

Our No. 1 priority is to get enough documentation support, so that we don't end up searching blogs and google for answers most of the time.

sknopf commented 8 years ago

Thanks, can you elaborate on which features you think need more information? Also feel free to submit a PR if you have something specific you think should be added

IndraniBiswas commented 8 years ago

Cant seem to understand how this.api.launchUrl works. Is it only valid inside page object or can be used inside commands code as well.

So I am trying this in page object :

module.exports = { url: function() { return this.api.launchUrl + '/cp'; },

And then trying use this page object in command like this , but the url does not load at all. I am able to print using console.log -

exports.command = function(username, password, marketplace, callback) { var loginPage = this.page.loginPage(); // using page object console.log(loginPage.url); // prints the url after reading from nightwatch.json file loginPage.navigate(); // does not open the url in browser }

What am I doing wrong? I cant find enough documentation around this. I am using NightWatch version 0.7.9

On Wed, Feb 3, 2016 at 1:59 PM, Stephanie Madison notifications@github.com wrote:

Thanks, can you elaborate on which features you think need more information? Also feel free to submit a PR if you have something specific you think should be added

— Reply to this email directly or view it on GitHub https://github.com/nightwatchjs/nightwatch-docs/issues/20#issuecomment-179492518 .

Indrani _Amazon.com, _San Francisco http://www.linkedin.com/pub/indrani-biswas/12/792/1a3

IndraniBiswas commented 8 years ago

ran it in debug mode, and found this error : 14:41:47.560 INFO - Executing: [get: www.abcd.com/cp]) 14:41:48.573 WARN - Exception thrown org.openqa.selenium.WebDriverException: f.QueryInterface is not a function

Fixed the url with http:// and now it works. But it will be nice to know what all is support using this.api