Skip to content

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

@shefo007

Description

@shefo007

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions