Questions tagged [magellan-nightwatch]

Deprecation Notice: This plugin is deprecated. Please instead use:

"Nightwatch Plugin" for integrating the Magellan test runner with Nightwatch child processes "Nightwatch Extra" for enhanced commands, and SauceLabs integrations

5 questions
2
votes
1 answer

Nightwatch How to use local variable from one function to another

I want to use local variable pass to another function or compare with any variable. Example: browser .waitForElementVisible("//div[@class='col-xs-7 alignR uppercase']//strong", 5000, function () { browser .pause(500) …
0
votes
1 answer

WebDriver chaining within a for loop only iterates the loop without executing the callback

I am writing Appium (v1.7.1) iOS automation tests where I am chaining a webdriver session and trying loop through the elements to fetch the data. setFilterOptions: function (driver, loc) { var chain = driver; //I am assigning…
0
votes
1 answer

In Magellan / Nightwatch, if we do .waitForElementNotVisible() but the element fade out or in, does the test actually work?

For .waitForElementNotVisible(selector, 2000), supposedly, it can test whether the element is fading out in 0.75 second. But what if our code has a bug, and it is doing the wrong thing and the element is not visible and is fading in? Now, won't…
nonopolarity
  • 146,324
  • 131
  • 460
  • 740
0
votes
1 answer

Using magellan-nightwatch, is there a way to assert some element is hidden / displayed?

waitForElementPresent or waitForElementNotPresent probably won't work if the element is not showing on the screen by one of display: none, visible: hidden or opacity: 0. (it should be similar to jasmine-jquery's expecting an element toBeHidden(). )
nonopolarity
  • 146,324
  • 131
  • 460
  • 740
-1
votes
1 answer

Nightwatch enable to detect inputs in Instagram

I tried a lot of different methods to set values for inputs https://www.instagram.com/accounts/login/?source=auth_switcher username password .waitForElementVisible('input[name=username]',1000) But unfortunately I did not find a solutions The…