When examining the source code of the RemoteWebDriver
, I noticed that every operation, such as retrieving text from a newly acquired WebElement
, involves sending a separate command to the browser. This raises concerns for me, especially in a highly dynamic JavaScript web application where this process could lead to inconsistent reads and random exceptions.
I am curious about how Selenium manages calls synchronized with the JavaScript event queue on the page. If these calls are not synchronized, is there any method available to perform multiple Selenium calls in a batch, transaction, or atomic operation without having to insert extensive blocks of custom JavaScript code?