Created
February 14, 2021 10:17
-
-
Save asolntsev/11d484c103b5c1bf9c0b4941ecbdd449 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.selenide.examples; | |
import com.codeborne.selenide.Configuration; | |
import com.codeborne.selenide.Selenide; | |
import org.junit.After; | |
import org.junit.Before; | |
import org.junit.Test; | |
import org.openqa.selenium.By; | |
import static com.codeborne.selenide.Condition.visible; | |
import static com.codeborne.selenide.Selenide.$; | |
/** | |
* Trying to reproduce issue https://github.com/selenide/selenide/issues/1398 | |
*/ | |
public class HangingTest { | |
static { | |
Configuration.browser = "firefox"; | |
// Configuration.browser = "chrome"; | |
} | |
@Before | |
public void setUp() { | |
Selenide.open("https://google.com"); | |
} | |
@After | |
public void tearDown() { | |
Selenide.closeWebDriver(); | |
} | |
@Test | |
public void t1() { | |
$(By.name("q")).shouldBe(visible).val("todo").pressEnter(); | |
} | |
@Test | |
public void t2() { | |
$(By.name("q")).shouldBe(visible).val("todo").pressEnter(); | |
} | |
@Test | |
public void t3() { | |
$(By.name("q")).shouldBe(visible).val("todo").pressEnter(); | |
} | |
@Test | |
public void t4() { | |
$(By.name("q")).shouldBe(visible).val("todo").pressEnter(); | |
} | |
@Test | |
public void t5() { | |
$(By.name("q")).shouldBe(visible).val("todo").pressEnter(); | |
} | |
@Test | |
public void t6() { | |
$(By.name("q")).shouldBe(visible).val("todo").pressEnter(); | |
} | |
@Test | |
public void t7() { | |
$(By.name("q")).shouldBe(visible).val("todo").pressEnter(); | |
} | |
@Test | |
public void t8() { | |
$(By.name("q")).shouldBe(visible).val("todo").pressEnter(); | |
} | |
@Test | |
public void t9() { | |
$(By.name("q")).shouldBe(visible).val("todo").pressEnter(); | |
} | |
@Test | |
public void t10() { | |
$(By.name("q")).shouldBe(visible).val("todo").pressEnter(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment