-
Notifications
You must be signed in to change notification settings - Fork 9
Add suffix to menu items locator #46
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
Conversation
Signed-off-by: Luca Giorgi <[email protected]>
Not sure why https://github.com/robots-from-jupyter/robotframework-jupyterlibrary/blob/master/atest/lab/00_shell.robot#L11 seems to be failing. @bollwyvl do you happen to have access to the screenshots of the test run or more in depth logs? |
If you are logged in, you can pop up to the "summary" of the run, and scroll ALL the way down. All the artifacts should be visible there. Having a bit of a fire drill on some other stuff, but can hopefully take a look at this later today. |
Somehow the test fails when trying to click the menu item
@bollwyvl What do you make of this? |
I would i need to get into the browser and take a look at those selectors with some representative DOM... sometimes the parent selectors don't always do what one would expect. It can also be a timing thing: we might need to first wait until that item is visible and then click it. |
I'm stumped, I cannot reproduce the error locally because RobotFramework complains about I could work around the issue by implementing a check on the label, and in the case of |
As an update, my local issue with the xpath is due to Chrome, while the xpath is valid in Firefox it does not return any elements when using Chrome. |
I went ahead and refreshed all the CI etc on #49, and am now taking a look at this locally... |
Huzzah, looking good here. I'll merge this as-is and we can follow-up later, if need be. No promises due to the holidays, but I'll go ahead and start up an |
Great, thanks for going ahead and fixing it up! Essentially Chrome doesn't like when you apply attribute selectors to the shorthand of the parent, so we need to substitute |
Eek! Merged with
Yeah, I've forgotten more than I'd like to admit ever having known about XPath and XSLT. It's definitely a lowest-common-denominator thing, where possible, before one even starts considering performance, which can be a very real concern. Luckily, in testing, it usually doesn't matter, though... so it's really whatever's shortest/most reliable. |
The problem with Sorry, should've spotted it earlier! As soon as I have some time I'll send a new PR fixing it. |
Opened #52 to update the locator |
Signed-off-by: Luca Giorgi [email protected]
To address issue #45