-
Bug
-
Resolution: Fixed
-
Minor
-
2.6, 2.7
-
MOODLE_26_STABLE, MOODLE_27_STABLE
-
MOODLE_26_STABLE, MOODLE_27_STABLE
-
MDL-43951_master -
The problem is that $field->hasAttribute('whatever') (where get_class($field) = NodeElement) is querying selenium with JS enabled and we are experiencing one of the selenium race conditions when AJAX requests are executed, so we are trying to interact with an element that is not in the page because the page was reloaded after running the first select in And I select "Blocked users (1)" from "Message navigation:"
A fix for this was included in MDL-43738, externalizing it now as we want 100% passes, IIRC this is the unique random failure I've seen in the last 2 weeks
As a solution for this, we can check that the option exists, but would be better to try & catch it as race conditions will still exists if we just check it that way (it may be after that when the page reload is executed)