This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | Scroll to an element | |
| ==================== | |
| client.execute('var footerElements = document.getElementsByClassName("footer-partners");' + | |
| 'footerElements[0].scrollIntoView(true);') | |
| Scroll to the bottom of the page | |
| ================================ | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | https://www.domain.com.au/real-estate-agents/ page > Agents tab: It is hard to find the elements of react-select component. | |
| We can use this command in debugger to pause the debugger and find element: | |
| setTimeout(function(){debugger;}, 5000) | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | // Example adapted from the examples at http://nightwatchjs.org/guide#writing-tests | |
| module.exports = { | |
| 'Navigate to google': function (browser) { | |
| browser.windowMaximize(); | |
| browser.url('http://www.google.com'); | |
| browser.waitForElementVisible('body', 1000); | |
| }, | |
| 'Try a junk selector that doesnt exist, using .elements': function (browser) { | |
| // Note that the status is 0 |