HELP ME CLICK BUTTON NOT WORKING WEBVIEW VB.NET

Darli xcx 21 Reputation points
2022-05-23T23:30:50.28+00:00

WEB = <button type="button">Aceptar</button>

WebView21.ExecuteScriptAsync("document.getElementByName('Aceptar').click();") not working, help me friends :(

Developer technologies | VB
{count} votes

1 answer

Sort by: Most helpful
  1. Jiachen Li-MSFT 34,231 Reputation points Microsoft External Staff
    2022-05-24T01:36:25.453+00:00

    Hi @Darli xcx ,
    Try the following code.

    <button type="button" name="Aceptar">Aceptar</button>  
    
    WebView21.ExecuteScriptAsync("document.getElementsByName('Aceptar').click();")  
    

    Best Regards.
    Jiachen Li

    ----------

    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.