-
-
Couldn't load subscription status.
- Fork 8.6k
Open
Labels
A-needs decisionTLC needs to discuss and agreeTLC needs to discuss and agreeB-devtoolsIncludes everything BiDi or Chrome DevTools relatedIncludes everything BiDi or Chrome DevTools relatedI-enhancementSomething could be betterSomething could be better
Description
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
Labels
A-needs decisionTLC needs to discuss and agreeTLC needs to discuss and agreeB-devtoolsIncludes everything BiDi or Chrome DevTools relatedIncludes everything BiDi or Chrome DevTools relatedI-enhancementSomething could be betterSomething could be better