Skip to content

Example of use #337

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

Open
Angelk90 opened this issue Apr 24, 2025 · 0 comments
Open

Example of use #337

Angelk90 opened this issue Apr 24, 2025 · 0 comments

Comments

@Angelk90
Copy link

I created the following code example, see: Example

But I am getting the following error even when I launch it on my pc and also run the command: appium

Can you tell me what I'm doing wrong?

Error:

[INFO] Changes detected - recompiling the module!
Warning:  File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
[INFO] Compiling 1 source file to /Users/runner/work/test-appium/test-appium/target/classes
[INFO] /Users/runner/work/test-appium/test-appium/src/main/java/com/example/Main.java: /Users/runner/work/test-appium/test-appium/src/main/java/com/example/Main.java uses or overrides a deprecated API.
[INFO] /Users/runner/work/test-appium/test-appium/src/main/java/com/example/Main.java: Recompile with -Xlint:deprecation for details.


[INFO] -------------------------------------------------------------
Error:  COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
Error:  /Users/runner/work/test-appium/test-appium/src/main/java/com/example/Main.java:[4,33] cannot find symbol
  symbol:   class MacDriver
  location: package io.appium.java_client.mac
Error:  /Users/runner/work/test-appium/test-appium/src/main/java/com/example/Main.java:[5,29] cannot find symbol
  symbol:   class MobileElement
  location: package io.appium.java_client
Error:  /Users/runner/work/test-appium/test-appium/src/main/java/com/example/Main.java:[18,31] cannot find symbol
  symbol:   class MobileElement
  location: class com.example.Main
Error:  /Users/runner/work/test-appium/test-appium/src/main/java/com/example/Main.java:[18,30] type io.appium.java_client.AppiumDriver does not take parameters
Error:  /Users/runner/work/test-appium/test-appium/src/main/java/com/example/Main.java:[18,59] cannot find symbol
  symbol:   class MacDriver
  location: class com.example.Main
Error:  /Users/runner/work/test-appium/test-appium/src/main/java/com/example/Main.java:[19,17] cannot find symbol
  symbol:   class MobileElement
  location: class com.example.Main
[INFO] 6 errors 
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  4.867 s
[INFO] Finished at: 2025-04-24T16:26:15Z
[INFO] ------------------------------------------------------------------------
Error:  Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.10.1:compile (default-compile) on project appium-mac-test: Compilation failure: Compilation failure: 
Error:  /Users/runner/work/test-appium/test-appium/src/main/java/com/example/Main.java:[4,33] cannot find symbol
Error:    symbol:   class MacDriver
Error:    location: package io.appium.java_client.mac
Error:  /Users/runner/work/test-appium/test-appium/src/main/java/com/example/Main.java:[5,29] cannot find symbol
Error:    symbol:   class MobileElement
Error:    location: package io.appium.java_client
Error:  /Users/runner/work/test-appium/test-appium/src/main/java/com/example/Main.java:[18,31] cannot find symbol
Error:    symbol:   class MobileElement
Error:    location: class com.example.Main
Error:  /Users/runner/work/test-appium/test-appium/src/main/java/com/example/Main.java:[18,30] type io.appium.java_client.AppiumDriver does not take parameters
Error:  /Users/runner/work/test-appium/test-appium/src/main/java/com/example/Main.java:[18,59] cannot find symbol
Error:    symbol:   class MacDriver
Error:    location: class com.example.Main
Error:  /Users/runner/work/test-appium/test-appium/src/main/java/com/example/Main.java:[19,17] cannot find symbol
Error:    symbol:   class MobileElement
Error:    location: class com.example.Main
Error:  -> [Help 1]
Error:  
Error:  To see the full stack trace of the errors, re-run Maven with the -e switch.
Error:  Re-run Maven using the -X switch to enable full debug logging.
Error:  
Error:  For more information about the errors and possible solutions, please read the following articles:
Error:  [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
Error: Process completed with exit code 1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant