Skip to content

wait for navigation after an action #37

@jesg

Description

@jesg

if navigation is triggered then chromedriver should wait for navigation to complete in the following scenarios:

  • user clicks on a node

  • user sends keys to a node

it would probably be easiest to implement this as an explicit function first. ex.

driver.waitForNavigation((driver) => {
  myFavoriteLinkNode.click()
})

this could also be implicit in our actions but it would have some overhead. we would need to wait at least xms for the navigation to start.

another approach would be to proxy the Driver and Node object and wait for navigation when Page.frameStartedLoading event is triggered on the top level frame. i'll give this approach a shot after i complete basic frame and window handling.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions