Thank you so much for your valuable feedback keep watching
@amolchavan84622 жыл бұрын
Please Upload Next Video, It's Awesome, Your teaching is very good, I understood everything from the video, please Upload ASAP, Thanks
@BhauAutomationLab2 жыл бұрын
Thank for your valuable feedback Amol Yes coming soon keep watching 😊👍
@chaturachaundkar41902 жыл бұрын
Thank you for being the life savior, I was stucked into the same problem and your video helped me in showing the right way
@srilakshmibathula92652 жыл бұрын
Hi sir please keep doing videos sir. we love your videos.
@BhauAutomationLab2 жыл бұрын
Thanks for your valuable feedback keep watching
@aravindtalari54062 жыл бұрын
Good work sir, i watched all appium videos.can you please upload continuation videos. So that we all continue learning appium. Thank you 😊
@BhauAutomationLab2 жыл бұрын
Thank you for feedback 😊 ✔️ Yes will upload next session soon keep watching.
@mohammadsattar90332 жыл бұрын
@@BhauAutomationLab Can you help me with Appium when I need help for my job place. Please give me your contact number. Thank you.
@yogiraj04045 ай бұрын
Can we use it for appium 2.0???
@BhauAutomationLab5 ай бұрын
Below are the examples for performing tap and long press actions using the `TouchAction` class and the W3C Actions API in Java with Appium 2.0. ### Using `TouchAction` Class 1. **Tap Action**: ```java import io.appium.java_client.AppiumDriver; import io.appium.java_client.TouchAction; import io.appium.java_client.touch.TapOptions; import io.appium.java_client.touch.offset.ElementOption; import org.openqa.selenium.WebElement; // Assuming 'driver' is your AppiumDriver instance and 'element' is the element to tap TouchAction action = new TouchAction(driver); action.tap(TapOptions.tapOptions().withElement(ElementOption.element(element))).perform(); ``` 2. **Long Press Action**: ```java import io.appium.java_client.AppiumDriver; import io.appium.java_client.TouchAction; import io.appium.java_client.touch.LongPressOptions; import io.appium.java_client.touch.offset.ElementOption; import org.openqa.selenium.WebElement; import java.time.Duration; // Assuming 'driver' is your AppiumDriver instance and 'element' is the element to long press TouchAction action = new TouchAction(driver); action.longPress(LongPressOptions.longPressOptions() .withElement(ElementOption.element(element)) .withDuration(Duration.ofSeconds(2))) // long press duration .release() .perform(); ``` ### Using W3C Actions API 1. **Tap Action**: ```java import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.interactions.Actions; // Assuming 'driver' is your WebDriver instance and 'element' is the element to tap Actions actions = new Actions(driver); actions.moveToElement(element).click().perform(); ``` 2. **Long Press Action**: ```java import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.interactions.PointerInput; import org.openqa.selenium.interactions.Sequence; import java.time.Duration; import java.util.Arrays; // Assuming 'driver' is your WebDriver instance and 'element' is the element to long press PointerInput finger = new PointerInput(PointerInput.Kind.TOUCH, "finger"); Sequence longPress = new Sequence(finger, 1); longPress.addAction(finger.createPointerMove(Duration.ZERO, PointerInput.Origin.viewport(), element.getLocation().x, element.getLocation().y)); longPress.addAction(finger.createPointerDown(PointerInput.MouseButton.LEFT.asArg())); longPress.addAction(new org.openqa.selenium.interactions.Pause(finger, Duration.ofSeconds(2))); // long press duration longPress.addAction(finger.createPointerUp(PointerInput.MouseButton.LEFT.asArg())); driver.perform(Arrays.asList(longPress)); ``` ### Setting Up Appium 2.0 with Java 1. **Install Appium 2.0**: ```bash npm install -g appium@next ``` 2. **Install Necessary Drivers and Plugins**: ```bash appium driver install appium plugin install ``` 3. **Start Appium Server**: ```bash appium server ``` ### Maven Dependency for Appium Java Client Make sure to include the Appium Java client dependency in your `pom.xml`: ```xml io.appium java-client 8.0.0
@anjankharade25572 жыл бұрын
Great👍
@KamalSharma-nt2vd2 жыл бұрын
Can you give some tips as on how to count all elements present in a long scrollable list ?
@ramkorhale40062 жыл бұрын
Great Thank you so much
@justaminut2 жыл бұрын
Hai sir ! How to tap by coordinates using w3c actions (appium java client 8)
@zigasternad8304 Жыл бұрын
I'm wondering the same. Did you figure it out?
@dikshapatil73272 жыл бұрын
Upload more videos sir
@YenNguyen-pt4by2 жыл бұрын
The type AndroidTouchAction is deprecated. Do you have an other idee? Thank you.
@BhauAutomationLab2 жыл бұрын
Support for these actions will be removed from future Appium versions. It is recommended to use W3C Actions instead or the corresponding extension methods for the driver (if available) Thnx
@YenNguyen-pt4by2 жыл бұрын
@@BhauAutomationLab thank you for your answer. I have it ;)
@nikitajadhav96812 жыл бұрын
Great Thank you 👍
@BhauAutomationLab2 жыл бұрын
Thank you for your valuable feedback keep watching 😊