question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

getSize not working in Linux appium 1.9.1

See original GitHub issue

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 gist

Environment

  • Appium version (or git revision) that exhibits the issue: 1.9.1
  • Last Appium version that did not exhibit the issue (if applicable): 1.8.1
  • Desktop OS/version used to run Appium: Linux and Windows 10
  • Node.js version (unless using Appium.app|exe):
  • Mobile platform/version under test: Android o
  • Real device or emulator/simulator: real
  • Appium CLI or Appium.app|exe: CLI for linux and Exe for windows

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" />

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:15 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
mykola-mokhnachcommented, Nov 2, 2018

It will, but patching that would only fix the problem for .net client. Let see if we can patch it on driver level first

1reaction
akinsolbcommented, Nov 2, 2018

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Appium Pixel Resolution acceptance - Issues/Bugs
Hi there, I am trying to automate the app and facing the below issue… I have the latest version of Appium (Appium-1.7.1) Appium...
Read more >
Get Element Size - appium - Read the Docs
Get Element Size. Determine an element's size in pixels. Example Usage. // Java List<MobileElement> element = (MobileElement) driver.
Read more >
appium/appium - Gitter
@all any ideas why my emulator gets hanged after taking screenshot and rest of all test classes get failed PLatform: Android OS: 7.1.1....
Read more >
How to Use Touch Actions in Appium: Swipe Tap Touch
I am facing the problem with swipe for the end of the particular elements in an e-commerce app. one time swipe is working...
Read more >
AppiumDriver get Dimensions size Gives Unknown Error ...
It works fine when driver instance is AndroidDriver <MobileElement> and not AppiumDriver . Also you must use AndroidTouchAction instead of ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found