Skip to content

Instantly share code, notes, and snippets.

@asolntsev
Created February 14, 2021 10:17
Show Gist options
  • Save asolntsev/11d484c103b5c1bf9c0b4941ecbdd449 to your computer and use it in GitHub Desktop.
Save asolntsev/11d484c103b5c1bf9c0b4941ecbdd449 to your computer and use it in GitHub Desktop.
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