java-client icon indicating copy to clipboard operation
java-client copied to clipboard

WebDriverWait - Appium 8.3.0

Open GDiBiase opened this issue 2 years ago • 4 comments

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 ?

GDiBiase avatar Feb 13 '23 10:02 GDiBiase

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

valfirst avatar Feb 15 '23 14:02 valfirst

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

GDiBiase avatar Feb 17 '23 09:02 GDiBiase

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

valfirst avatar Feb 17 '23 09:02 valfirst

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.

GDiBiase avatar Feb 17 '23 09:02 GDiBiase