com.rk.fsp.utils.SeleniumUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of FSP-main Show documentation
Show all versions of FSP-main Show documentation
Library for supporting automatically
frame switching inside pages
The newest version!
package com.rk.fsp.utils;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;
/**
* Created by Roman Khachko on 01.09.2014.
*/
public class SeleniumUtils {
public static WebElement findElementWithTimeout(WebDriver driver, By by, int timeOutInSeconds) {
return new WebDriverWait(driver, timeOutInSeconds).until(ExpectedConditions.visibilityOfElementLocated(by));
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy