KEYCLOAK-9273 Log test browser version
This commit is contained in:
parent
c4a46a5591
commit
1199376e37
1 changed files with 6 additions and 0 deletions
|
@ -31,6 +31,7 @@ import org.jboss.logging.Logger;
|
|||
import org.keycloak.testsuite.util.WaitUtils;
|
||||
import org.openqa.selenium.WebDriver;
|
||||
import org.openqa.selenium.htmlunit.HtmlUnitDriver;
|
||||
import org.openqa.selenium.remote.RemoteWebDriver;
|
||||
|
||||
/**
|
||||
* @author <a href="mailto:mposolda@redhat.com">Marek Posolda</a>
|
||||
|
@ -44,6 +45,11 @@ public class KeycloakDronePostSetup {
|
|||
DronePoint<?> dronePoint = event.getDronePoint();
|
||||
Object drone = droneContext.get(dronePoint).getInstance();
|
||||
|
||||
if (drone instanceof RemoteWebDriver) {
|
||||
RemoteWebDriver remoteWebDriver = (RemoteWebDriver) drone;
|
||||
log.infof("Detected browser: %s %s", remoteWebDriver.getCapabilities().getBrowserName(), remoteWebDriver.getCapabilities().getVersion());
|
||||
}
|
||||
|
||||
|
||||
if (drone instanceof WebDriver && !(drone instanceof AppiumDriver)) {
|
||||
WebDriver webDriver = (WebDriver) drone;
|
||||
|
|
Loading…
Reference in a new issue