--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/9dd02de3-2ec8-4f5b-9b98-df2b5789bb52%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
WebDriver driver = new FirefoxDriver();
driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);
WebDriverWait wait = new WebDriverWait(driver, 20000);
driver.get("https://drive.google.com/");
try {
//Login to google drive
driver.findElement(By.id("Email")).sendKeys(" ");
driver.findElement(By.id("next")).click();
wait.until(ExpectedConditions.visibilityOfElementLocated(By.id("Passwd")));
driver.findElement(By.id("Passwd")).sendKeys(" *** ");
driver.findElement(By.id("signIn")).click();
//wait.until(ExpectedConditions.elementToBeClickable(driver.findElement(By.name("q"))));
driver.findElement(By.name("q")).sendKeys("FolderName");
driver.findElement(By.name("q")).sendKeys(Keys.ENTER);
try {
Thread.sleep(7000);
} catch (InterruptedException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
WebElement folder = driver.findElement(By.xpath("//span[contains(text(),'FolderName')]"));
folder.click();
//Below code is not working
// same as mine,
// i did not understand yet but there were lot strange debug log while waiting for condition of element-to-clickable
// so i removed that condition
//wait.until(ExpectedConditions.elementToBeClickable(folder));
folder.sendKeys(Keys.ENTER);
// now i can see the files and sub folders under the FolderName
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/c7728a07-9bf6-4880-85e2-191559dc5434%40googlegroups.com.To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
wait.until(ExpectedConditions.visibilityOfElementLocated(By.???("???")));