List of usage examples for org.openqa.selenium.remote DriverCommand FIND_CHILD_ELEMENTS
String FIND_CHILD_ELEMENTS
To view the source code for org.openqa.selenium.remote DriverCommand FIND_CHILD_ELEMENTS.
Click Source Link
From source file:qaf.example.listener.IosLocatorCompatibilityListener.java
License:Open Source License
@Override public void beforeCommand(QAFExtendedWebDriver driver, CommandTracker commandTracker) { if (commandTracker.getCommand().equalsIgnoreCase(DriverCommand.FIND_ELEMENT) || commandTracker.getCommand().equalsIgnoreCase(DriverCommand.FIND_ELEMENTS) || commandTracker.getCommand().equalsIgnoreCase(DriverCommand.FIND_CHILD_ELEMENT) || commandTracker.getCommand().equalsIgnoreCase(DriverCommand.FIND_CHILD_ELEMENTS)) { String version = driver.getCapabilities().getVersion(); if (is9OrBelow(version)) { ensureIos9Compatibility(commandTracker.getParameters()); } else {/*from w ww . ja v a2 s . c o m*/ ensureIos11Compatibility(commandTracker.getParameters()); } } }