Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new sysadmin locators, actions and steps definition #15

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

itsmekumari
Copy link
Collaborator

new sysadmin locators, actions and steps definition

* @param requestMethod any specific value
*/
public static void selectRequestDropdownOption(String requestMethod) {
Select objSelect = new Select(CdfSysAdminLocators.requestMethod);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we change objSelect to selectRequestMethod

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed to selectRequestMethod

@@ -51,4 +53,47 @@ public class CdfSysAdminLocators {

@FindBy(how = How.XPATH, using = "//*[@data-cy='Clear All']")
public static WebElement clearAll;

@FindBy(how = How.XPATH, using = "//*[@data-cy='wizard-result-icon-close-btn']")
public static WebElement clickOnCloseNamespaceWindow;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we remove using click while defining locators , click/sendKeys are user functions which we can use in methods but not in while declaring locators . the naming should be like CloseNamespaceWindowButton .

Copy link
Collaborator Author

@itsmekumari itsmekumari Oct 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change done in final PR and in this as well.

@FindBy(how = How.XPATH, using = "//a[contains(text(), 'Go to homepage')]")
public static WebElement goToHomepage;

@FindBy(how = How.XPATH, using = "//a[@href='/cdap/httpexecutor']") //remove later
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this comment in final code Or specify a proper comment

Copy link
Collaborator Author

@itsmekumari itsmekumari Oct 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed here and also In Final PR code while merging this is removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants