Skip to content

[🚀 Feature]: Implement high level BiDi navigation commands #14208

@titusfortner

Description

@titusfortner

Feature and motivation

This comes from this discussion

We want to be able to allow users to set listeners on navigation commands to get context information that can be used in logging.

I think we would only need to support this for now? Would it make sense to put it in navigate class with the other commands?
7.3.4.4The browsingContext.fragmentNavigated Event

Usage example

driver.navigate.add_navigated_handler { |event|
  @watch_context = event.context if event.url.include?(whatever) 
}
driver.script.add_console_message_handler { |event|
  log_messages << event.text if event.source["context"] == @watch_context
}
driver.get(my_url)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-needs decisionTLC needs to discuss and agreeB-devtoolsIncludes everything BiDi or Chrome DevTools relatedI-enhancementSomething could be better

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions