Comments (10)
I also saw the Press Key issue: #67
It is most probably related...
I created a pull request (my very first im my life):
#153
from robotframework-flaui.
Thanks for you PR i think this shows the issue here in detail. Yes Issue 67 was about unity that keyboard events was not triggered.
We only send all command to FlaUI C# Keyboard implementation. I will recheck if any bug on robotframework wrapper side is made.
From issue 67 the last information was that the Keyboard implemention from FlaUI has to be adjusted probably a fix is done because i not recheck the library changes.
- Recheck Robotframework-FlaUI if any wrong data is send to FlaUI Keyboard
- Recheck FlaUI if a bugfix exists by Keyboard usage
from robotframework-flaui.
i have retested WPFtestapp manually with the keyboard it seems the app itself has some issues.
The down button is not showing the arrows even when i am typing with keyboard manually.
I suggest also that we look for the source code of the test app
from robotframework-flaui.
Reproductions steps are.
Open WpfApplication.exe
Go to keyboard Controls tab
Press and release 'a': everythin works fine
Press and release 'down arrow': still works fine
Press and release 'up arrow': the keyboard up event showing fine but keyboard down is not showing.
from robotframework-flaui.
After verification and mentioned noubars text. OnKeyDown event is only triggered once by key operations.
Current implementation handles all keyboard interaction by window from test application.
But i found a wpf issue here : https://stackoverflow.com/questions/1646998/up-down-left-and-right-arrow-keys-do-not-trigger-keydown-event
Currently it's shows that the wpf testing application contains a bug on this side.
from robotframework-flaui.
@GeoGegl Can you pls take changes from branch bugfix/#152
I adjusted the wpf test application to handle events correctly. But i see in your test case that the expected input by release_only is wrong by your test case pls adjust them.
from robotframework-flaui.
Thanks a lot! I'll work on it ASAP
from robotframework-flaui.
I updated to ignore case in the key up / down test case.
And I also did a change on the WPF application.
I took over your PreviewKeyDown / Up entries but changed the behvior of
displaying the events in the WPF application.
As I'm new to github I'm not sure: Can you see my changes in the pull request?
What do you think about the changed event displaying?
My intention was to display all key down events until the keys are released.
And to display all key up events when they occur until no key is held down anymore -
only then a new list of key up events is displayed.
-> My test case does not cover all of that - but I guess it should be added in future
from robotframework-flaui.
I think you have done it very well
Make the small changes @Nepitwin has asked in PR review.
Then we can merge into the main
My concern is though this press_only or up_only feature currently works only with keys starting with s'SOMEKEY' but not with text t'SOMETEXT'. And there is no code implemented to prevent it. As example error message saying you cannot use press_only or up_only feature with text.
from robotframework-flaui.
Thanks for your input. I added the check and error message for text pattern and updated the changelog.
from robotframework-flaui.
Related Issues (20)
- 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.