dinsdag 19 april 2016

Tosca > Steering Parameter > FireEvent > Finding out which one to use

If you are trying to steer a web element with Tosca and the default 'FireEvent = change' is not working you have to find out which 'event' is 'being listened to'. These are two techniques to go about that:

Chrome:

  • Rightclick the element and choose 'Inspect'
  • In the 'underwater screen' that pops up Leftclick the tag corresponding to the element
  • In the right upper section of the underwater screen there is a section with the tabs: Styles, Computed, and Event Listeners
    • Click the tab 'Event Listeners'
  • A list of events appears.
Firefox:
  • Rightclick the element and choose 'Inspect Element'
  • In the 'underwater screen' that pops up Rightclick the tag corresponding to the element and choose 'show DOM properties'
  • In the second underwater screen that pops there is a section on the right side.
    • Scroll down this section to find all 'on-' events.
  • Firefox seems less discerning than Chrome. I've had cases where Chrome found the events being listened to and Firefox didn't.

Geen opmerkingen:

Een reactie posten