Currently, I am utilizing Selenium Webdriver for Chrome and Firefox along with Java.
After performing various actions, I stumbled upon a typical source code snippet like this:
<input type="button" value="yoyo" class="btn" onClick="SubmitForm(this, 'XYZ','_blank')" >
I am required to click the button. However, before clicking it as usual, I need to replace "XYZ" with "ABC". Is there a way to achieve this?
Could creating a new button or a form be a solution? Or maybe utilizing JavaScript in some way? Any approach would suffice.
Despite my search efforts, I have not been able to find guidance on resolving this issue. Your assistance would be greatly appreciated.