0

element not interactable I get this error when I run a test case. the element is a button. What could be the possible reason? Here`s the code inside "it".

this.timeout(85000);
        browser
            .pause(global.BROWSERPAUSEVALUE)
            .element('[data-short-description="solicitation-signin-email"]')
            .setValue('xyz@rmail.com')
            .pause(global.BROWSERPAUSEVALUE)
            .click('[data-btn="user-signin"]')
            .click('[data-btn="user-signin"]')
            .notify(done);

1 Answers1

0

Maybe the element is not interactable yet.Try setting an implicit wait while initializing the driver:

driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
Walid Ahmed
  • 243
  • 1
  • 12