-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Executing commands directly on sections? #634
Comments
I use an expectation with a cb in my project. Something like: browser.page.topMenu().section.loginBox.section.unauthenticated.expect.section('@loginTooltip').to.be.visible.before(10000); |
That's a good solution for assertions. Thank you! I'm wondering - what about commands instead of assertions? Like |
Not currently but it's something we could look at adding. A workaround would be something like:
You'll have to call useXpath/useCss directly if the locate strategy differs from the previous one. |
This works excellent for now. Thank you 👍! Adding this feature would make less code to maintain, still it does the job and I'm happy with this :). |
Hello, But back to the original issue: " calling directly on section" If I have a section which I want to use also the same way as a element, I'll add a container element into it: |
Waiting for this PR to be merged: |
@sknopf Do we still have to use this workaround? |
What would be the correct way for clicking a section element? |
Hello, I was wondering if that's even possible.
I want to execute a command directly on some section. For example - I want to
.waitForElementVisible
directly on section (not on elements). Is it even possible? I've tried a lot of combinations, for example:browser.page.topMenu().section.loginBox.section.unauthenticated.waitForElementVisible('@loginTooltip', 10000)
So it looks like this:
topMenu()
is my pageObject file, then there isloginBox
section containing ->unauthenticated
section containing ->loginTooltip
section. I want to.waitForElementVisible
on the last one section. How to do this? I know I can combine my sections without limitations, but how to work on them later on?Best regards,
drptbl.
The text was updated successfully, but these errors were encountered: