Autolt is not working ..Please help me

@Test public void testParameterWithXML() throws InterruptedException, AWTException, IOException{ Runtime.getRuntime().exec(“D:\\autolt\\complied\\First.exe”); driver = new FirefoxDriver(); driver.manage().window().maximize(); driver.get(“http://mail.google.com/”); driver.manage().timeouts().implicitlyWait(1000,TimeUnit.SECONDS); driver.findElement(By.id(“Email”)).sendKeys(“dd@gmail.com”); driver.findElement(By.id(“Passwd”)).sendKeys(“dd”); driver.findElement(By.id(“signIn”)).click(); WebDriverWait wait = new WebDriverWait(driver,60); wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(“//div[contains(text(),’COMPOSE’)]”))).click(); driver.findElement(By.xpath(“//div[@class=’a1 aaA aMZ’]”)).click(); }} Autolt script Local $hWnd=WinWait(“[CLASS:#32770]”,””,10) ControlFocus($hWnd,””,”Edit1″) Sleep(2000) ControlSetText($hWnd, “”, “Edit1″, “Desktop sharing bitrate.xlsx”) Sleep(2000) ; Click on the Open button ControlClick($hWnd, “”,”Button1″);

vinu Default Asked on March 3, 2015 in Selenium WebDriver.
Add Comment
0 Answer(s)

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.