Enable button after entering text in textbox using selenium(java)

Hi ,

got a problem in enabling button after entering text in textbox , used following code to enable the button after entering text but failing to enable enable button .could any one help here .

JS.ExecuteScript(“document.getElementByName(‘preAvgnoEmployee’).value=’50′”);

JS.ExecuteScript(“document.getElementByName(‘questSectionButton’)[0].removeAttribute(‘disabled’);”);

Thank you

vijay

Default Asked on March 24, 2017 in Selenium WebDriver.
Add Comment
  • 0 Answer(s)
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.