|
|
@ -30,11 +30,13 @@ import java.util.List; |
|
|
|
import org.openqa.selenium.By; |
|
|
|
import org.openqa.selenium.By; |
|
|
|
import org.openqa.selenium.JavascriptExecutor; |
|
|
|
import org.openqa.selenium.JavascriptExecutor; |
|
|
|
import org.openqa.selenium.Keys; |
|
|
|
import org.openqa.selenium.Keys; |
|
|
|
|
|
|
|
import org.openqa.selenium.WebDriver; |
|
|
|
import org.openqa.selenium.WebElement; |
|
|
|
import org.openqa.selenium.WebElement; |
|
|
|
import org.openqa.selenium.remote.RemoteWebDriver; |
|
|
|
import org.openqa.selenium.remote.RemoteWebDriver; |
|
|
|
import org.openqa.selenium.support.FindBy; |
|
|
|
import org.openqa.selenium.support.FindBy; |
|
|
|
import org.openqa.selenium.support.FindBys; |
|
|
|
import org.openqa.selenium.support.FindBys; |
|
|
|
import org.openqa.selenium.support.PageFactory; |
|
|
|
import org.openqa.selenium.support.PageFactory; |
|
|
|
|
|
|
|
import org.openqa.selenium.support.ui.ExpectedCondition; |
|
|
|
import org.openqa.selenium.support.ui.ExpectedConditions; |
|
|
|
import org.openqa.selenium.support.ui.ExpectedConditions; |
|
|
|
import org.openqa.selenium.support.ui.WebDriverWait; |
|
|
|
import org.openqa.selenium.support.ui.WebDriverWait; |
|
|
|
|
|
|
|
|
|
|
@ -66,11 +68,13 @@ public class DataSourcePage extends NavBarPage implements NavBarPage.NavBarItem |
|
|
|
String jdbcParams) { |
|
|
|
String jdbcParams) { |
|
|
|
buttonCreateDataSource().click(); |
|
|
|
buttonCreateDataSource().click(); |
|
|
|
|
|
|
|
|
|
|
|
createDataSourceForm().btnDataSourceTypeDropdown().click(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
new WebDriverWait(driver, 10).until(ExpectedConditions.visibilityOfElementLocated( |
|
|
|
new WebDriverWait(driver, 10).until(ExpectedConditions.visibilityOfElementLocated( |
|
|
|
new By.ByClassName("dialog-create-data-source"))); |
|
|
|
new By.ByClassName("dialog-create-data-source"))); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
createDataSourceForm().btnDataSourceTypeDropdown().click(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
new WebDriverWait(driver, 10).until(ExpectedConditions.textToBePresentInElement(driver.findElement(By.className("dialog-create-data-source")), dataSourceType.toUpperCase())); |
|
|
|
|
|
|
|
|
|
|
|
createDataSourceForm().selectDataSourceType() |
|
|
|
createDataSourceForm().selectDataSourceType() |
|
|
|
.stream() |
|
|
|
.stream() |
|
|
|
.filter(it -> it.getText().contains(dataSourceType.toUpperCase())) |
|
|
|
.filter(it -> it.getText().contains(dataSourceType.toUpperCase())) |
|
|
|