Question
Accenture
IN
Last activity: 6 Nov 2018 20:02 EST
How to create controls for the buttons with javascript
Hi Team,
While I'm working on a webpage I need to perform click on a submit button which leads to a message alert showing Yes or No. I interrogated both the submit and also the message alert Yes buttons.
The problem here is as soon as the event click on the button occurs it will run the javascript for the message alert box . Hence during the automation when I call performclick method for the submit button it leads to the message alert box and the process gets terminated there itself.
Here is the sample code of the Submit button
<input type="submit" name="Name" value="Value" onclick="return Method();" >