I am working on automating a website in which a message box pops up when we do something on the website. This message box comes up with OK and Cancel buttons.
Is there any way that I can use the SEND KEYS i.e. simulate the 'Enter' key on this message box.
1. There is no way to find the property of the message box.
2. The only method is to click 'Enter' key when this message box appears.
I am looking for java code that can click the 'Enter' key when this message box appears.
Kindly provide your feedback ASAP.