This commit is contained in:
Lukáš Kaňka
2023-08-22 17:41:47 +02:00
parent af6105e6f8
commit 0bf89e85dd
4 changed files with 22 additions and 64 deletions

View File

@ -15,10 +15,12 @@ public class LaunchBrowser {
public void testBrowser() {
// System.setProperty("webdriver.gecko.driver", "C:\\Users\\lukas\\Nextcloud\\GitHub\\Java\\Selenium_Selenide_Playwright_JAVA\\Selenite_Naveen\\driver\\geckodriver.exe");
// Configuration.browser = "firefox";
//Configuration.startMaximized = tru;
Configuration.headless = true; // true nezobrazí browser
Configuration.baseUrl = "https://www.google.com/";
Configuration.screenshots = false;
Configuration.headless = true;
open("https://www.google.com/");
open("/");
// Odmítnutí cookie
$ (By.id("W0wltc")).click();
}