Skip to content

The problem with org.openqa.selenium.support in appium java-client #1960

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
shefo007 opened this issue Jul 11, 2023 · 0 comments · Fixed by #2019
Closed

The problem with org.openqa.selenium.support in appium java-client #1960

shefo007 opened this issue Jul 11, 2023 · 0 comments · Fixed by #2019

Comments

@shefo007
Copy link

shefo007 commented Jul 11, 2023

Description

I tried to create maven project, when I made a class in main java folder selenium.support package does not exist put it exists when I made a class in test java folder, so I edited project structure models and made selenium support package scope from "Runtime" to "Compile" everything works fine and I used pagefactory that I wanted to set and my test also works fine.

When I tried to run my test using maven, With this command "mvn clean test -Pandroid" the errors came to me.

Environment

  • Java client build version or git revision if you use some snapshot: java client 8.5.1
  • Appium server version or git revision if you use some snapshot: Appium 2.0.0-rc.5
  • Desktop OS/version used to run Appium if necessary: Windows 10
  • Node.js version (unless using Appium.app|exe) or Appium CLI or Appium.app|exe: node v18.16.0
  • Mobile platform/version under test: Android 11.0
  • Real device or emulator/simulator: emulator/simulator

Details

My test works fine, when running it from testng.xml file or from IDE but when run it from terminal not works. The main problem is in org.openqa.selenium.support because it works with compile not runtime scope. Also, The IDE that I work with is intelliJ IDEA.

Code To Reproduce Issue [ Good To Have ]

My Sample Code

Update

I used Github actions and the same error came up you can see it in My Sample Code and also check the actions logs

@valfirst valfirst linked a pull request Sep 20, 2023 that will close this issue
4 tasks
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant