Comments (9)
Well i know why you want to implement these kind of keywords ;) Yes it make sense to implement such a kind of keywords.
Pls implement these keywords by use all module methods usage in Keywords module side because you can call all executions on this side. It's a good enhancement to make click operation more stable.
from robotframework-flaui.
@Nepitwin I need some additional eye and help i cannot see the pattern why the test case is failing.
The problem is in
https://github.com/GDATASoftwareAG/robotframework-flaui/blob/147-new-keywords-reliable-clicks/atests/Mouse.robot#L105
I am getting the error
Expected error 'FlaUiError: Element '/Window[@name='FlaUI WPF Test App']/Window/Menu/MenuItem[@name='Some MenuItem']/Text[@name='Some MenuItem']' could not be closed after clicking on '/Window[@name='FlaUI WPF Test App']/Tab/TabItem[@name='Simple Controls']/Button[@AutomationId='PopupToggleButton2']'' but got 'FlaUiError: Element '/Window[@name='FlaUI WPF Test App']/Window/Menu/MenuItem[@name='Some MenuItem']/Text[@name='Some MenuItem']' could not be closed after clicking on '/Window[@name='FlaUI WPF Test App']/Tab/TabItem[@name='Simple Controls']/Button[@AutomationId='PopupToggleButton2']''.
Expected "ABC" but got "ABC"
Both strings are identical but still failing. I've got around the issue in the previous test case by adding STARTS: as prefix which will not compare for absolute equality.
from robotframework-flaui.
I am doing something wrong but where?
from robotframework-flaui.
Kind of strange by Diff Checker he identifies differences
If you compare
Expected error
'FlaUiError: Element '/Window[@name='FlaUI WPF Test App']/Window/Menu/MenuItem[@name='Some MenuItem']/Text[@name='Some MenuItem']' could not be closed after clicking on '/Window[@name='FlaUI WPF Test App']/Tab/TabItem[@name='Simple Controls']/Button[@AutomationId='PopupToggleButton2']''
but got
'FlaUiError: Element '/Window[@name='FlaUI WPF Test App']/Window/Menu/MenuItem[@name='Some MenuItem']/Text[@name='Some MenuItem']' could not be closed after clicking on '/Window[@name='FlaUI WPF Test App']/Tab/TabItem[@name='Simple Controls']/Button[@AutomationId='PopupToggleButton2']''.
By notepad it's not equal. But i don't see the charecter which is different
from robotframework-flaui.
Left one does not contains a dot and ends by a whitespace.
Right one ends by dot.
Potential the dot at the end?
from robotframework-flaui.
Nope it is not. Those are added by the robot logger
from robotframework-flaui.
I have tried the test case with try and catch instead of run keyword and expect error and it is working fine.
Which means the internal comparison in run keyword and expect error has some issues processing characters in this case. Because with prefix of 'STARTS:' is working fine.
I am setting the Prefix EQUALS: instead and it is also working fine. I think there is a combi of character order in the error text triggering some wildcard search internally in the keyword and according to documentation EQUALS: prefix disables wildcards.
So the test should fine now.
What i am surprised for that we have never seen such a case with all other error text with xpaths in other unit tests.
from robotframework-flaui.
@Nepitwin Thank you for your contribution but before i close this issue
I still want to change close_elment argument of click close to optional
by setting a default value for close_element = click_element.
i will make a new PR with the changes
from robotframework-flaui.
And after testing i will be adding the other intended keywords
Right Click Open
Right Click Close
Double Click Open
Double Click Close
from robotframework-flaui.
Related Issues (20)
- Issue with Key Up Key Down events in test application HOT 10
- New Keyword Select ComboBox Item By Name
- Stable Flauinspect HOT 2
- Focus element does not have error handling HOT 1
- Keyword "Find All Elements" fails (here: Property "ClassName" is "Not Supported") HOT 2
- Unable to select menu items HOT 5
- Improving error message of new clicks
- Example HOT 1
- Select Treeitem name colliding with -> operator HOT 3
- Take Screenshot keyword shows two images
- Screenshot on Failure generates multiple images HOT 2
- New keywords for datagrid
- New click keywords middle click and scroll wheel
- Grid Issues wrong row count wrong data
- Grid Selection issue
- new grid keyword
- Robot API Listeners execute FlauiLibrary-specific handling for all keywords HOT 3
- Very slow object recognition when using longer or gapped XPaths HOT 3
- Objects found with Find All Elements get destroyed HOT 2
- uncatched exception in reliable clicks
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from robotframework-flaui.