Currently, I am in the process of developing automation scripts using NightWatchJS. My test scenario involves a few basic steps:
- Launching a URL
- Logging in
- Verifying elements on the page
- Ensuring the presence of elements within an iframe
The login page is straightforward with a submit button. Once logged in successfully, there is an inner page with an iframe. Upon successful login, JavaScript focuses on the text field within the iframe.
Below is an excerpt from my NightWatch test code:
/* Insert your Nightwatch test code here */
Initially, the test runs smoothly up to the point of form submission. However, it encounters failure thereafter due to timing out while waiting for a particular element to be present.
For this testing, I am utilizing Chrome 50 and ChromeDriver 2.21.371459 on OS X - El Capitan. For further reference, details of my selenium setup are provided below:
https://i.sstatic.net/Ivwzv.png
Thank you in advance.