diff --git a/release/chromedriver.exe b/release/chromedriver.exe index 32e56ee..4bfff1e 100644 Binary files a/release/chromedriver.exe and b/release/chromedriver.exe differ diff --git a/release/openfin_selenium.json b/release/openfin_selenium.json index d69f9bf..4f47a7d 100644 --- a/release/openfin_selenium.json +++ b/release/openfin_selenium.json @@ -23,7 +23,7 @@ }, "runtime": { "arguments": "--v=1", - "version": "10.66.39.25" + "version": "9.61.38.43" }, "splashScreenImage": "https://cdn.openfin.co/demos/hello/splashscreen/splash_hello.png", "shortcut": {} diff --git a/src/main/java/com/openfin/HelloOpenFinTest.java b/src/main/java/com/openfin/HelloOpenFinTest.java index 0c4f903..8c6c387 100644 --- a/src/main/java/com/openfin/HelloOpenFinTest.java +++ b/src/main/java/com/openfin/HelloOpenFinTest.java @@ -4,6 +4,7 @@ import org.openqa.selenium.*; import org.openqa.selenium.chrome.ChromeDriverService; import org.openqa.selenium.chrome.ChromeOptions; +import org.openqa.selenium.interactions.Actions; import org.openqa.selenium.remote.DesiredCapabilities; import org.openqa.selenium.remote.RemoteWebDriver; import org.openqa.selenium.support.FindBy; @@ -73,14 +74,21 @@ public static void main(String[] args) throws Exception { System.out.println("Got the driver " + driver.getCurrentUrl()); driver.manage().timeouts().setScriptTimeout(10, TimeUnit.SECONDS); + try { if (switchWindow(driver, "Hello OpenFin")) { // select main window findRunimeVersion(driver); - HelloMainPage helloMainPage = PageFactory.initElements(driver, HelloMainPage.class); - helloMainPage.showNotification(); - sleep(2); - helloMainPage.showCPUInfo(); +// HelloMainPage helloMainPage = PageFactory.initElements(driver, HelloMainPage.class); +// helloMainPage.showNotification(); +// sleep(2); +// helloMainPage.showCPUInfo(); + + WebElement desktopNotificationButton = driver.findElement(By.id("desktop-notification")); + WebElement cpuInfoButton = driver.findElement(By.id("cpu-info")); + + Actions actions = new Actions(driver); + actions.moveToElement(desktopNotificationButton).click().moveToElement(cpuInfoButton).click().perform(); } if (switchWindow(driver, "Hello OpenFin CPU Info")) { // select CPU Info window