77import org .openqa .selenium .WebElement ;
88import org .openqa .selenium .support .FindBy ;
99import org .openqa .selenium .support .ui .ExpectedConditions ;
10- import ru .yandex .qatools .htmlelements .annotations .Name ;
11- import ru .yandex .qatools .htmlelements .element .Link ;
12- import ru .yandex .qatools .htmlelements .element .TextInput ;
10+ import com .frameworkium .core .htmlelements .element .Link ;
11+ import com .frameworkium .core .htmlelements .element .TextInput ;
1312
14- import java .util . concurrent . TimeUnit ;
13+ import java .time . Duration ;
1514
1615public class DeveloperGuidePage extends BasePage <DeveloperGuidePage > {
1716
18- @ Name ("Developer guide search" )
1917 @ Visible
2018 @ FindBy (css = "input[name='as_q']" )
2119 private TextInput searchField ;
2220
23- @ Name ("Bootstrap search item" )
2421 @ Visible
2522 @ FindBy (linkText = "Bootstrap" )
2623 private Link bootstrapSearchItem ;
2724
28- @ Name ("Guide article title" )
2925 @ FindBy (css = ".main-grid h1" )
3026 private WebElement guideTitle ;
3127
@@ -43,7 +39,7 @@ public DeveloperGuidePage setSearchBar(String inputText) {
4339
4440 @ Step ("Click link from search results with title {0}" )
4541 public DeveloperGuidePage clickLinkWithTitle (String linkTitle ) {
46- driver .manage ().timeouts ().implicitlyWait (30 , TimeUnit . SECONDS );
42+ driver .manage ().timeouts ().implicitlyWait (Duration . ofSeconds ( 30 ) );
4743 var searchResultsLink = driver .findElement (
4844 By .xpath (String .format (
4945 "//nav[@id='navbar-main']//a[text()='%s']" ,
0 commit comments