Skip to content

PostAction.wait after execute JavaScript?  #81

Description

@mashikag

Is there any way to make the browser instance wait after .execute JavaScript?

I am executing my own javascript. From the network requests in my MITM proxy I can see the expected requests being executed from the click of the login button. However I believe the result is handled too early. The body of the page is still the one of the browser before executing the document.getElementById('ContentPlaceHolder1_btnlogin').click() .

browser.open(loginUrl) >>> browser.execute("document.getElementById('ContentPlaceHolder1_UserName').value='xxxxxx';document.getElementById('ContentPlaceHolder1_Password').value='yyyyyyy!';document.getElementById('ContentPlaceHolder1_btnlogin').click();") >>> browser.inspect() >>> browser.get(by: .XPathQuery("//body")) === handleResult

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions