Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS will be completely phased out by mid-2025. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit 72b5f4a7 authored by Sonali MOHANTY's avatar Sonali MOHANTY
Browse files

Merge remote-tracking branch 'origin/restBaseIssue' into restBaseIssue

# Conflicts:
#	smp-ui-tests/pom.xml
#	smp-ui-tests/src/main/java/utils/DriverManager.java
#	smp-ui-tests/src/main/java/utils/enums/SMPMessages.java
parents 9d53d572 f233c81e
Branches EDELIVERY-12010-smp-automation-related-improvements
No related tags found
No related merge requests found
package pages.components;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.interactions.Actions;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
import org.openqa.selenium.support.pagefactory.AjaxElementLocatorFactory;
......@@ -34,6 +36,9 @@ public class ConfirmationDialog extends PageComponent {
public void cancel(){
log.info("dialog .. cancel");
waitForElementToBeClickable(noBtn);
/* Actions actions = new Actions(driver);
actions.moveToElement(noBtn).click().build().perform();*/
//((JavascriptExecutor) driver).executeScript("arguments[0].click();", noBtn);
noBtn.click();
waitForElementToBeGone(noBtn);
}
......
......@@ -65,6 +65,7 @@ public class GenericSelect extends PageComponent {
if(option.getText().trim().equalsIgnoreCase(text)){
waitForElementToBeClickable(option).click();
waitForElementToBeGone(option);
log.info("return type is True");
return true;
}
}
......
......@@ -81,8 +81,10 @@ public class BaseTest {
@BeforeClass(alwaysRun = true)
public void beforeClass() {
logger.info("beforeClass entry");
driver = DriverManager.getDriver();
driver.get(PROPERTIES.UI_BASE_URL);
logger.info("beforeClass exit");
}
@BeforeMethod(alwaysRun = true)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment