Unable to click on Text Element which is show as a pointer when hovers mouse to
See original GitHub issueHi,
My Cordova UWP app has some TEXT elements which will show a drop-down menu after clicking on it. Those elements are TEXT element as shown in the Page Source. On the app, when the mouse is pointed at them, we can click to open the drop-down menu.
Can we have a fix on that so WinAppDriver can click on this type of TEXT element? I’m using Appium v1.7.1 and WinAppDriver v0.7 (I guess, as WinAppDriver is installed along with Appium).
Error message:
[WinAppDriver] [STDOUT] {"status":105,"value":{"error":"element not interactable","message":"An element command could not be completed because the element is not pointer- or keyboard interactable."}}
[MJSONWP] Encountered internal error running command: {"jsonwp":{"status":105,"value":{"error":"element not interactable","message":"An element command could not be completed because the element is not pointer- or keyboard interactable."}}} ProxyRequestError: Could not proxy command to remote server. Original error: 400 - {"status":105,"value":{"error":"element not interactable","message":"An element command could not be completed because the element is not pointer- or keyboard interactable."}}
Page Source XML:
<Text AcceleratorKey="" AccessKey="" AutomationId="" ClassName="" FrameworkId="MicrosoftEdge"
HasKeyboardFocus="False" HelpText="" IsContentElement="True" IsControlElement="True"
IsEnabled="True" IsKeyboardFocusable="False" IsOffscreen="True" IsPassword="False"
IsRequiredForForm="False" ItemStatus="" ItemType="" LocalizedControlType="text" Name="すべて"
Orientation="None" ProcessId="6488" RuntimeId="42.3543334.2.787" x="463" y="56" width="43"
height="32"/>
Thanks and Regards
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Unable to click on Text Element which is show as a pointer ...
Hi,. My Cordova UWP app has some TEXT elements which will show a drop-down menu after clicking on it. Those elements are TEXT...
Read more >button:hover and cursor pointer not working?
The cursor: pointer and background-color change on hover are both not working on my buttons. I have tried the solutions i have seen...
Read more >Mouse cursor doesn't change to pointer when hovering "full ...
However: when hovering it, the mouse is changed as to select text, rather than to indicate one can click (even though it's clickable)....
Read more >How to stop Mouse Pointer auto selecting when hovering ...
Make sure to uncheck the Activate a window by hovering over it with the mouse option. 4. Click OK If the issue persists,...
Read more >Give Clickable Elements a Pointer Cursor
The pointer cursor is to indicate a link and not any/all clickable objects. It's because web authors abuse cursor declaration or misuse cursor ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Menu item’s sub item is showing isOffscreen false,but it is visible.How to select this with WinAppDriver?
Hi @watarus-nt,
Sorry for the long delay as this issue slipped through. We actually have some sample scenarios below demonstrating ad-hoc mouse actions such as moving and clicking. I.e. https://github.com/Microsoft/WinAppDriver/blob/v1.0/Tests/WebDriverAPI/Mouse.cs#L55 https://github.com/Microsoft/WinAppDriver/blob/v1.0/Tests/WebDriverAPI/Mouse.cs#L117
The
MouseDownMoveUp
sample test covers the ad-hoc mouse move where you can additionally specify the offset from the target element coordinate as follows:Similar ad-hoc touch actions examples can also be found on the sample tests below: https://github.com/Microsoft/WinAppDriver/blob/v1.0/Tests/WebDriverAPI/TouchDownMoveUp.cs#L48 https://github.com/Microsoft/WinAppDriver/blob/v1.0/Tests/WebDriverAPI/TouchDownMoveUp.cs#L75
Hope this helps.