-
-
Notifications
You must be signed in to change notification settings - Fork 6k
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
getSize not working in Linux appium 1.9.1 #11619
Comments
Try appium@beta |
updated the linux appium to version appium1.9.2-beta still facing the issue.
|
What is appium-xcuitest-driver component version? |
how come appium-xcuitest-driver comes into picture its and android device and automation name |
If this is uiautomator2 driver then you could try to replace the call to getRect with getLocation/getSize , since chromedriver itself does not support the /rect endpoint. |
Im using c# 'MobileDriver.FindElement(LocateElement(type, object)).Size' is the command im using. Im not using the rect command . If the command was an issue it should fail in both linux and windows. |
It probably calls getRect internally |
so its an implementation issue? |
I think it might be handled on both sides. For iOS the driver has been patched to "split" /rect call in web context into /location + /size. I'm not quite sure if the same trick could be done for Android. Although patching this on driver level will allow to void possible issues with all clients and not only the .NET one. @imurchie Perhaps you have more ideas on a possible fix? |
Im still not able to understand the code works fine with Windows Appium server 1.9.1 and it fails with Linux Appium server 1.9.1 -- I believe the server code is same for all platforms |
@mykola-mokhnach I think it calls getRect internally, I saw this a while back. It got replaced as part of the W3C changes. Will calling /location/size work in a web context? |
It will, but patching that would only fix the problem for .net client. Let see if we can patch it on driver level first |
@akinsolb : sorry but can i expect this fix at early? |
I have published the patch for uia2 in appium@beta |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
The problem
I have hybrid app and Im trying the below method
MobileDriver.FindElement(LocateElement(type, object)).Size
which works fine when running in windows machine with appium server 1.9.1 here is the windows gist When I try to run the same code in Linux machine with appium server 1.9.1 it fails with error "Unknown command". Here is the gist for linux appium server linux gistEnvironment
Details
<add key="AppiumServer" value="127.0.0.1" /> <add key="AppiumServerPort" value="4723" /> <add key="PlatformName" value="Android" /> <add key="AutomationName" value="uia" /> <add key="PlatformVersion" value="8.0" /> <add key="DeviceName" value="xxxxxxx" /> <add key="AppPackage" value="com.xxx.xxx" /> <add key="AppActivity" value=".MainActivity" /> <add key="AutoWebview" value="true" />
The text was updated successfully, but these errors were encountered: