Enabling a button on a webpage
Hello,
I need to enable a button on a webpage, so that it may be clicked
OR
I need to be able to press "Enter" in a text box, after entering my text, as this would bypass the button.
The button in question is not a standard button, it appears to be a data cell in a table that responds to an "onclick" event, if that makes any difference.
Could anyone guide me on how to do this please?
I have tried several methods to enable it, but none have worked so far.
Normally, the button is enabled after it detects that the user has typed in their username and password, however as the automation copies them in as a whole, it never detects any entry... I'm assuming.
Thanks,
Ryan
***Updated by Moderator: Lochan. Removed user added helpme tags***
Hello,
I need to enable a button on a webpage, so that it may be clicked
OR
I need to be able to press "Enter" in a text box, after entering my text, as this would bypass the button.
The button in question is not a standard button, it appears to be a data cell in a table that responds to an "onclick" event, if that makes any difference.
Could anyone guide me on how to do this please?
I have tried several methods to enable it, but none have worked so far.
Normally, the button is enabled after it detects that the user has typed in their username and password, however as the automation copies them in as a whole, it never detects any entry... I'm assuming.
Thanks,
Ryan
***Updated by Moderator: Lochan. Removed user added helpme tags***
***Updated by Moderator: Marissa to update categories***
Hi,
Please try using the RaiseEvent method to raise the KeyUp event. If this doesn't work, you can use the ExecuteScript and InvokeScript methods to inject javascript onto the webpage and invoke it. These methods are available from the webpage level in the object explorer.
You will use ExecuteScript to put your javascript function onto the page. You only need to call this method once - at some point after the page has loaded. After that, you will use InvokeScript to invoke the function.
--Mitchell