Followers

Monday, 9 October 2017

selenium UnhandledalertException on firefox not executing Webdriver Classes

Source: stackoverflow.com --- Monday, October 09, 2017
After Autoit script completes login me through Windows authenticate my selenium stops working and not executing any command on browser (Firefox) System Version: 19.0 Platform:Windows 7 Firefox: 56.0 (64 bit) Selenium: 3.6.0 Testcase I want to get title of my webpage but unbale to print it as browser not reading any .driver class public static void main(String[] args) throws IOException { System.setProperty("webdriver.gecko.driver", "C:/Users/aamir.fatimi/Downloads/geckodriver-v0.19.0-win64/geckodriver.exe"); WebDriver driver = new FirefoxDriver(); driver.get("http://dbu-export-09/en/Pages/default.aspx"); Runtime.getRuntime().exec("C:\\Users\\aamir.fatimi\\Desktop\\AutoIT\\Autoit.exe"); driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS); String get_Title = driver.getTitle(); System.out.println("Title is" + get_Title); driver.quit(); ...



from Windows http://ift.tt/2hZz7yJ

No comments:

Post a Comment