-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add "waitCommandIsSelected" method to the "CommandsExplorer" page-object in selenium tests #7467
Conversation
…ium-commandexplorer
public void waitCommandIsSelected(String commandName) { | ||
String locator = | ||
String.format( | ||
"//div[@id='command_%s' and contains(concat(' ', normalize-space(@class), ' '), ' selected')]", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we avoid "concat(' ', normalize-space(@Class), ' ')" here by rewriting the xpath to the:
//div[@id='command_%s' and contains(normalize-space(@class), 'selected')
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On my regret no, in this case, this is the best way
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need MySuite.xml ? |
@tolusha no, this is a temporary suite for fast check a factory on CI, it will be removed after check the factory functionality. |
Rename it respectively then |
What does this PR do?
Add "waitCommandIsSelected" method to the "CommandsExplorer" page-object and update "selectCommandByName" method with new check.
What issues does this PR fix or reference?
Issue #7364
Release Notes
Docs PR