-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
windows: clickAndDrag #212
Comments
I keep getting server issues on that |
Perhaps:
? If you'd like to see |
RemoteWebElement destination = (RemoteWebElement) windowsDriver.get().findElement(By.name("QCOE-Hakan")); here is the code and issue I see is org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: Cannot read properties of null (reading 'match') can I please get some help on that |
I probably can check that if you provide a proper server log |
Thanks . Here are the logs I am trying on one of my desktop apps to make a poc on it . 11:46:21.032 [main] INFO io.github.bonigarcia.wdm.WebDriverManager -- Using chromedriver 117.0.5938.149 (resolved driver for Chrome 117) org.openqa.selenium.InvalidArgumentException: Modifier key name '[ctrl]' is unknown. Supported key names are: shift,ctrl,alt,win
[HTTP] --> DELETE /session/385b9195-d394-4338-b78e-a6d3945106e4/window [HTTP] --> DELETE /session/385b9195-d394-4338-b78e-a6d3945106e4 11:46:45.141 [main] INFO org.isw.myapp.WinTest_3 -- Code to be executed after each class ===============================================
|
is there any other ways or apiendpoints to make drag and drop happen in Winapppsdriver with appium? |
The exception above is expected. The |
Also the exception there does not match to the one which has been stated above ( |
I have removed the modifiers key and tried without it I am still getting the same issue . here is the updated code I am not sure what is the issue on the code
|
Here are the new logs rg.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: Cannot read properties of null (reading 'match')
|
this must be a list, not array ( |
Thanks for your help, I did it both but still same issue , I checked the documantation it says everythig is an optional parameter but I could not find a solution yet , I just I wanted to do simple drag and drop , Would it be possible to give me an example code so I could take that as a reference please . |
java stacktraces are of no use. I need server logs |
I know you are being so helpful but I do not have the server logs because it is one of the desktop apps which I use for Rdp but we do not own that app which I was trying to do a poc for drag and drop on it . |
I don't think I can help much without having server logs. Maybe there is a bug, but it impossible to figure out where without them. |
Thank you I have seen that , Is there any api endpoints I could do drag and drop based on api call to Server? |
Hi Again , I just wanted to let you know, studently I started not seeing Server issues, but this feature which we use for drag and drop windowsDriver.get().executeScript("windows:clickAndDrag", params); is not doing drag and drop it only clicks the start element without holding it then it moves the destinition element as a drag and drop it is supposed to ho;ld the source element and drag to destinition element right? Please advice , Thank you . Here are the logs . |
here are the logs for C# |
Have you tried to increase the durationMs value? |
Yes i have tried with msduration in java it did not work until now i just increased duration to 10 seconds then it works now .thank you . But still gives server issue on C# side and thoughts on that ? |
If you think this is a bug then report it to https://github.com/appium/dotnet-client I could also change the default value of durationMs for the above API if you could confirm the minimum working duration. Is, for example, 5000ms enough or 10000 is the necessary minimum? |
Hi i had some custom waits I removed them and looks like 5000ms is good for default duration time |
Ok, created #226 |
Warning:
Hi I been trying to use windows: clickAndDrag but I dont see any examples or how to use it , Would be possible to provide some examples please , I have spent 2 days on it I could not come up with a solution for it in Java .
Thanks
These issues are not tracked. Please create new issues in the main Appium
repository: https://github.com/appium/appium/issues/new
The text was updated successfully, but these errors were encountered: