Skip to content
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

bug: Element position are offset in iPad in horizontal layout #18968

Closed
3 tasks done
Reeta-L opened this issue Aug 9, 2023 · 2 comments
Closed
3 tasks done

bug: Element position are offset in iPad in horizontal layout #18968

Reeta-L opened this issue Aug 9, 2023 · 2 comments
Labels
ThirdParty upstream problems XCUITest regarding xcuitest driver

Comments

@Reeta-L
Copy link

Reeta-L commented Aug 9, 2023

Do I have the most recent component updates?

  • I use the most recent available driver/plugin and server versions

Is the component officially supported by the Appium team?

  • I have verified the component repository is present under the Appium organization in GitHub

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

I am trying to automate an internal app on iPad. I am using appium 2 and xcuitest driver 4.18.4. Using appium inspector the elements are highlighted offset. And tap by coordinates also does not work.
See below screenshot the settings button is not highlighted correctly.
image
I even try on the home screen, and the buttons are highlighted incorrectly. I suppose there is a problem with landscape mode on iPad.

Expected Behavior

The settings button should be highlighted correctly and tap by coordinates should also work.

Minimal Reproducible Example

Steps:

  1. Connect iPad in landscape mode.
  2. Try to capture buttons on homescreen using appium inspector.
  3. The buttons are offset
    pic1

Environment

  • Operating system: Windows 10, macOS Monterery (12.5.1)
  • Appium server version (output of appium --version): 2.0.0-beta.56
  • Appium driver(s) and their version(s): xcuitest 4.18.4
  • Appium plugin(s) and their version(s):
  • Node.js version (output of node --version): v19.6.0
  • npm version (output of npm --version): 9.4.0
  • Last component(s) version which did not exhibit the problem: n/a
  • Platform and version under test: iPad 16.3.1
  • Real device or emulator/simulator: Real device - iPad (10th generation)

Link to Appium Logs

No response

Futher Information

appium3.log
Picture1
Picture2

@Reeta-L Reeta-L added Bug a problem that needs fixing Needs Triage bugs which are not yet confirmed labels Aug 9, 2023
@mykola-mokhnach mykola-mokhnach added ThirdParty upstream problems XCUITest regarding xcuitest driver and removed Bug a problem that needs fixing Needs Triage bugs which are not yet confirmed labels Aug 9, 2023
@mykola-mokhnach
Copy link
Collaborator

Element coordinates are returned by XCTest and we cannot influence this logic. According to what I observed before it may returns portrait coordinates for elements in landscape because they are transformed implicitly in the framework internals afterwards.

Consider reporting the issue to Apple.

@eglitise
Copy link
Collaborator

eglitise commented Aug 9, 2023

This may also be a problem in the Inspector, not Appium. @Reeta-L can you try again with the latest Inspector version (2023.8.1)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ThirdParty upstream problems XCUITest regarding xcuitest driver
Projects
None yet
Development

No branches or pull requests

3 participants