Giter Club home page Giter Club logo

Comments (9)

Nepitwin avatar Nepitwin commented on June 2, 2024

@noubar

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.

noubar avatar noubar commented on June 2, 2024

@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.

noubar avatar noubar commented on June 2, 2024

I am doing something wrong but where?

from robotframework-flaui.

Nepitwin avatar Nepitwin commented on June 2, 2024

@noubar

Kind of strange by Diff Checker he identifies differences

image

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.

Nepitwin avatar Nepitwin commented on June 2, 2024

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.

noubar avatar noubar commented on June 2, 2024

Nope it is not. Those are added by the robot logger

from robotframework-flaui.

noubar avatar noubar commented on June 2, 2024

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.

noubar avatar noubar commented on June 2, 2024

@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.

noubar avatar noubar commented on June 2, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.