|
|
@ -10,12 +10,10 @@ import org.openqa.selenium.chrome.ChromeDriver |
|
|
|
import org.openqa.selenium.chrome.ChromeOptions |
|
|
|
import org.openqa.selenium.chrome.ChromeOptions |
|
|
|
import org.openqa.selenium.firefox.FirefoxDriver |
|
|
|
import org.openqa.selenium.firefox.FirefoxDriver |
|
|
|
import org.openqa.selenium.firefox.FirefoxOptions |
|
|
|
import org.openqa.selenium.firefox.FirefoxOptions |
|
|
|
import org.openqa.selenium.remote.RemoteWebDriver |
|
|
|
|
|
|
|
import org.openqa.selenium.safari.SafariDriver |
|
|
|
import org.openqa.selenium.safari.SafariDriver |
|
|
|
import org.openqa.selenium.support.ui.ExpectedConditions |
|
|
|
import org.openqa.selenium.support.ui.ExpectedConditions |
|
|
|
import org.openqa.selenium.support.ui.WebDriverWait |
|
|
|
import org.openqa.selenium.support.ui.WebDriverWait |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private val PATH = "http://localhost:${ServerLauncher.port}" |
|
|
|
private val PATH = "http://localhost:${ServerLauncher.port}" |
|
|
|
|
|
|
|
|
|
|
|
fun WebDriver.openTestPage(test: String) { |
|
|
|
fun WebDriver.openTestPage(test: String) { |
|
|
@ -41,8 +39,6 @@ internal object Drivers { |
|
|
|
val Firefox by lazy { |
|
|
|
val Firefox by lazy { |
|
|
|
object : FirefoxDriver( |
|
|
|
object : FirefoxDriver( |
|
|
|
FirefoxOptions().apply { |
|
|
|
FirefoxOptions().apply { |
|
|
|
// System.setProperty("webdriver.gecko.driver","G:\\Selenium\\Firefox driver\\geckodriver.exe"); |
|
|
|
|
|
|
|
System.setProperty("webdriver.gecko.driver","C:\\Users\\Shagen\\.gradle\\selenium\\gecko\\geckodriver.exe"); |
|
|
|
|
|
|
|
setHeadless(true) |
|
|
|
setHeadless(true) |
|
|
|
} |
|
|
|
} |
|
|
|
) { |
|
|
|
) { |
|
|
|