Skip to content

Commit

Permalink
AYS-206 | StatusDropdown Locator Has Been Changed.
Browse files Browse the repository at this point in the history
  • Loading branch information
cagla88 committed Apr 3, 2024
1 parent 775242e commit 819d308
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/test/java/org/ays/pages/UsersPOM.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public UsersPOM() {
@FindBy(xpath = "//span[contains(@class, 'anticon-edit')]")
private WebElement usersEditIcon;

@FindBy(xpath = "(//div[contains(@class, 'ant-select')])[3]")
@FindBy(xpath = "(//span[@class='ant-select-selection-item'])[1]")
private WebElement statusDropdown;

@FindBy(xpath = "//div[.='Active']")
Expand Down
5 changes: 3 additions & 2 deletions src/test/java/org/ays/step_definitions/UsersEdit.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ public void editTheStatusSectionInTheUserForm() {

@Then("Click on the save edit button")
public void Click_on_the_save_edit_button() {
pageActions.waitUntilClickable(usersPOM.getEditSaveButton());
pageActions.clickMethod(usersPOM.getEditSaveButton());
pageActions.waitUntilVisible(usersPOM.getEditSaveButton());
pageActions.moveToElement(usersPOM.getEditSaveButton());
pageActions.clickElementWithJavaScript(usersPOM.getEditSaveButton());
}

}

0 comments on commit 819d308

Please sign in to comment.