Пример #1
0
 @Test
 public void hashCanStartWithDiez() {
   $("h2").shouldHave(exactText("Current hash is: ''"));
   Selenide.updateHash("#some-page");
   $("h2").shouldHave(exactText("Current hash is: '#some-page'"));
 }
Пример #2
0
 @Test
 public void userCanUpdateHashWithoutReloadingThePage() {
   $("h2").shouldHave(exactText("Current hash is: ''"));
   Selenide.updateHash("some-page");
   $("h2").shouldHave(exactText("Current hash is: '#some-page'"));
 }