There is an element whose attribute periodically changes to a random value. How to track the moment of change and execute the code?

  • MutationObserver? - Qwertiy

1 answer 1

In a method that changes an attribute, trigger an event and track it in the right place.

The event, in general, can be created like this:

public delegate void dVoid(); public event dVoid OnSomething; 
  • True, I did not notice that the question concerns Selenium WebDriver. Perhaps, within the framework of this tool, the answer is not correct - Aleh Lipka