Skip to content
Advertisement

Button is getting enable only After entering text from keyword

I am facing one issue while doing automation where the button is getting enable only after entering text in the field I need to click on CREATE Button after entering some text in the app name field. I have written code using JavaScript and it is entering value also but Button is not getting enable. The button is only getting enable when I am entering text using Keyboard.

Here is the code:

JavaScript

Screenshot: Page

This is serviceNow portal

Advertisement

Answer

To simulate keyboard strokes we have Actions class in Selenium.

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement