11package com.atlassian.performance.tools.jiraactions.api.page
22
3+ import com.atlassian.performance.seleniumjs.NativeExpectedConditions.Companion.or
4+ import com.atlassian.performance.seleniumjs.NativeExpectedConditions.Companion.presenceOfElementLocated
35import com.atlassian.performance.tools.jiraactions.api.memories.Project
46import org.openqa.selenium.By
57import org.openqa.selenium.WebDriver
68import org.openqa.selenium.WebElement
7- import org.openqa.selenium.support.ui.ExpectedConditions
89import java.time.Duration
910
1011class BrowseProjectsPage (
@@ -16,10 +17,10 @@ class BrowseProjectsPage(
1617 val jiraErrors = JiraErrors (driver)
1718 driver.wait(
1819 Duration .ofSeconds(6 ),
19- ExpectedConditions . or (
20- ExpectedConditions . presenceOfElementLocated(By .cssSelector(" tbody.projects-list" )),
21- ExpectedConditions . presenceOfElementLocated(By .className(" none-panel" )),
22- jiraErrors.anyCommonError ()
20+ or (
21+ presenceOfElementLocated(By .cssSelector(" tbody.projects-list" )),
22+ presenceOfElementLocated(By .className(" none-panel" )),
23+ jiraErrors.anyCommonErrorNative ()
2324 )
2425 )
2526 jiraErrors.assertNoErrors()
@@ -65,4 +66,4 @@ class BrowseProjectsPage(
6566 Project (projectKey, projectName)
6667 }.toSet()
6768 }
68- }
69+ }
0 commit comments