SHARE
TWEET

Untitled

a guest Jun 27th, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. System.setProperty("webdriver.chrome.driver", "DriverFactory.getChromeDriverPath()")
  2. WebDriver driver = new ChromeDriver()
  3. DriverFactory.changeWebDriver(driver)
  4.      
  5. println(driver.switchTo().activeElement().getLocation())
  6. //do what you need to use Alt+Tab
  7. println(driver.switchTo().activeElement().getLocation())
  8.      
  9. (621, 260)
  10. (149, 260)
  11.      
  12. import org.openqa.selenium.WebDriver
  13. import org.openqa.selenium.chrome.ChromeDriver
  14. import com.kms.katalon.core.webui.driver.DriverFactory
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top