appium / java-client

Java language binding for writing Appium Tests, conforms to W3C WebDriver Protocol
Apache License 2.0
1.2k stars 753 forks source link

WebDriverWait - Appium 8.3.0 #1861

Open GDiBiase opened 1 year ago

GDiBiase commented 1 year ago

Hi guys, I have installed the AppiumJavaClient 8.3.0 version and trying to use the WebDriverWait / FluentWait object. To do this I have used the import org.openqa.selenium.support.ui.FluentWait command. But, instead to let me use the class, it return an error, the .support.ui package is not found. The workaround was to also import the dependencies -> implementation 'org.seleniumhq.selenium:selenium-java:4.1.1' But is there a more flexible way to fix it ? Or the implementation 'io.appium:java-client:8.3.0' still have this issue ?

valfirst commented 1 year ago

I have installed the AppiumJavaClient 8.3.0 version

@GDiBiase could you please describe your actions? For some reason your project is missing transitive dependencies

GDiBiase commented 1 year ago

ciao @valfirst as you can see, without the implementation 'org.seleniumhq.selenium:selenium-java:4.1.1' dependency I'm not able to use the FluentWait object. Although it appears to be in the dependencies list.

image

image

valfirst commented 1 year ago

sorry, it's not enough details to understand what actions have been performed

GDiBiase commented 1 year ago

i have added this line to the build.gradle file // Appium implementation 'io.appium:java-client:8.3.0' for make my project, anyway I wasn't able to use the FluentWait object because the import org.openqa.selenium.support.ui.FluentWait command goes in error.

for make it works, I added the: implementation 'org.seleniumhq.selenium:selenium-java:4.1.1' in the build.gradle file, with this way I'm able to use the FluentWait object inside my project.