0

I am using nightwatch.js to perform end-to-end testing and have to use a roundabout method for a waitForElementVisible command to work as expected. For example, my code below:

browser.waitForElementVisible(".profile label[for='Admin']") // works
browser.waitForElementVisible(".profile label[for='Admin'] input[id='Admin']") // breaks

For further clarification, I am testing to see if a radio button is visible. The radio button's DOM elements is as such:

<div class='profile'>
  <div class='roleSelector'>
    <label for="Admin">
      <input type="radio" id="Admin" class="Admin">
    </label>
  </div>
</div>
gkim795
  • 140
  • 1
  • 8

1 Answers1

0

As far as I know, there is no such specific case.

Did you try using '.profile input[id='Admin']' ?

Hope that serves your purpose at hand.

Raju
  • 2,299
  • 2
  • 16
  • 19