Best io.appium code snippet using io.appium.java_client.imagecomparison.FeaturesMatchingOptions
ComparesImages.java
Source:ComparesImages.java
...15 */16package io.appium.java_client;17import static io.appium.java_client.MobileCommand.compareImagesCommand;18import io.appium.java_client.imagecomparison.ComparisonMode;19import io.appium.java_client.imagecomparison.FeaturesMatchingOptions;20import io.appium.java_client.imagecomparison.FeaturesMatchingResult;21import io.appium.java_client.imagecomparison.OccurrenceMatchingOptions;22import io.appium.java_client.imagecomparison.OccurrenceMatchingResult;23import io.appium.java_client.imagecomparison.SimilarityMatchingOptions;24import io.appium.java_client.imagecomparison.SimilarityMatchingResult;25import org.apache.commons.codec.binary.Base64;26import org.apache.commons.io.FileUtils;27import java.io.File;28import java.io.IOException;29import java.util.Map;30import javax.annotation.Nullable;31public interface ComparesImages extends ExecutesMethod {32 /**33 * Performs images matching by features with default options. Read34 * https://docs.opencv.org/3.0-beta/doc/py_tutorials/py_feature2d/py_matcher/py_matcher.html35 * for more details on this topic.36 *37 * @param base64image1 base64-encoded representation of the first image38 * @param base64Image2 base64-encoded representation of the second image39 * @return The matching result.40 */41 default FeaturesMatchingResult matchImagesFeatures(byte[] base64image1, byte[] base64Image2) {42 return matchImagesFeatures(base64image1, base64Image2, null);43 }44 /**45 * Performs images matching by features. Read46 * https://docs.opencv.org/3.0-beta/doc/py_tutorials/py_feature2d/py_matcher/py_matcher.html47 * for more details on this topic.48 *49 * @param base64image1 base64-encoded representation of the first image50 * @param base64Image2 base64-encoded representation of the second image51 * @param options comparison options52 * @return The matching result. The configuration of fields in the result depends on comparison options.53 */54 default FeaturesMatchingResult matchImagesFeatures(byte[] base64image1, byte[] base64Image2,55 @Nullable FeaturesMatchingOptions options) {56 Object response = CommandExecutionHelper.execute(this,57 compareImagesCommand(ComparisonMode.MATCH_FEATURES, base64image1, base64Image2, options));58 //noinspection unchecked59 return new FeaturesMatchingResult((Map<String, Object>) response);60 }61 /**62 * Performs images matching by features with default options. Read63 * https://docs.opencv.org/3.0-beta/doc/py_tutorials/py_feature2d/py_matcher/py_matcher.html64 * for more details on this topic.65 *66 * @param image1 The location of the first image67 * @param image2 The location of the second image68 * @return The matching result.69 */70 default FeaturesMatchingResult matchImagesFeatures(File image1, File image2) throws IOException {71 return matchImagesFeatures(image1, image2, null);72 }73 /**74 * Performs images matching by features. Read75 * https://docs.opencv.org/3.0-beta/doc/py_tutorials/py_feature2d/py_matcher/py_matcher.html76 * for more details on this topic.77 *78 * @param image1 The location of the first image79 * @param image2 The location of the second image80 * @param options comparison options81 * @return The matching result. The configuration of fields in the result depends on comparison options.82 */83 default FeaturesMatchingResult matchImagesFeatures(File image1, File image2,84 @Nullable FeaturesMatchingOptions options) throws IOException {85 return matchImagesFeatures(Base64.encodeBase64(FileUtils.readFileToByteArray(image1)),86 Base64.encodeBase64(FileUtils.readFileToByteArray(image2)), options);87 }88 /**89 * Performs images matching by template to find possible occurrence of the partial image90 * in the full image with default options. Read91 * https://docs.opencv.org/2.4/doc/tutorials/imgproc/histograms/template_matching/template_matching.html92 * for more details on this topic.93 *94 * @param fullImage base64-encoded representation of the full image95 * @param partialImage base64-encoded representation of the partial image96 * @return The matching result.97 */98 default OccurrenceMatchingResult findImageOccurrence(byte[] fullImage, byte[] partialImage) {...
ImagesComparisonTest.java
Source:ImagesComparisonTest.java
...19import static org.junit.Assert.assertFalse;20import static org.junit.Assert.assertNotNull;21import static org.junit.Assert.assertThat;22import io.appium.java_client.imagecomparison.FeatureDetector;23import io.appium.java_client.imagecomparison.FeaturesMatchingOptions;24import io.appium.java_client.imagecomparison.FeaturesMatchingResult;25import io.appium.java_client.imagecomparison.MatchingFunction;26import io.appium.java_client.imagecomparison.OccurrenceMatchingOptions;27import io.appium.java_client.imagecomparison.OccurrenceMatchingResult;28import io.appium.java_client.imagecomparison.SimilarityMatchingOptions;29import io.appium.java_client.imagecomparison.SimilarityMatchingResult;30import org.apache.commons.codec.binary.Base64;31import org.junit.Test;32import org.openqa.selenium.OutputType;33public class ImagesComparisonTest extends AppIOSTest {34 @Test35 public void verifyFeaturesMatching() {36 byte[] screenshot = Base64.encodeBase64(driver.getScreenshotAs(OutputType.BYTES));37 FeaturesMatchingResult result = driver38 .matchImagesFeatures(screenshot, screenshot, new FeaturesMatchingOptions()39 .withDetectorName(FeatureDetector.ORB)40 .withGoodMatchesFactor(40)41 .withMatchFunc(MatchingFunction.BRUTE_FORCE_HAMMING)42 .withEnabledVisualization());43 assertThat(result.getVisualization().length, is(greaterThan(0)));44 assertThat(result.getCount(), is(greaterThan(0)));45 assertThat(result.getTotalCount(), is(greaterThan(0)));46 assertFalse(result.getPoints1().isEmpty());47 assertNotNull(result.getRect1());48 assertFalse(result.getPoints2().isEmpty());49 assertNotNull(result.getRect2());50 }51 @Test52 public void verifyOccurrencesSearch() {...
HomePage.java
Source:HomePage.java
...89import io.appium.java_client.AppiumDriver;10import io.appium.java_client.MobileElement;11import io.appium.java_client.imagecomparison.FeatureDetector;12import io.appium.java_client.imagecomparison.FeaturesMatchingOptions;13import io.appium.java_client.imagecomparison.FeaturesMatchingResult;14import io.appium.java_client.imagecomparison.MatchingFunction;15import io.appium.java_client.pagefactory.AndroidFindBy;16import util.ReuseClass;17import util.TakeScreenShotForYou;1819public class HomePage extends BasePage {202122 ReuseClass reuseClass;2324 @AndroidFindBy(accessibility ="Skip")25 private MobileElement skipButton;2627 @AndroidFindBy(className="android.widget.ImageView")28 private MobileElement imageContent;29 30 @AndroidFindBy(id="android:id/content")31 private MobileElement imageContent1;32 3334 @AndroidFindBy(accessibility ="Login")35 private MobileElement loginButton;3637 public HomePage(AppiumDriver<MobileElement> driver) { 38 super(driver);39 }404142 public LoginPage PerformSkip() {4344 try { 45 reuseClass = new ReuseClass();46 if(reuseClass.elementPresent(imageContent, driver)) {47 48 //TakeScreenshot49 //TakeScreenShotForYou.takeScreenshot(driver);50 51 //improve Assert for Comparing image by taking screenshot with current image52 byte[] screenShot= Base64.encodeBase64(driver.getScreenshotAs(OutputType.BYTES));53 String fullpath = new File("src/test/resources/ScreenShots/homePage.jpg").getAbsolutePath();54 55 FeaturesMatchingResult result = driver56 .matchImagesFeatures(screenShot, fullpath.getBytes(), new FeaturesMatchingOptions()57 .withDetectorName(FeatureDetector.ORB)58 .withGoodMatchesFactor(40)59 .withMatchFunc(MatchingFunction.BRUTE_FORCE_HAMMING)60 .withEnabledVisualization());61 Assert.assertEquals(result.getVisualization().length, result.getVisualization().length>0);62 Assert.assertEquals(result.getCount(), result.getCount()>0);63 Assert.assertEquals(result.getTotalCount(), result.getTotalCount()>0);64 Assert.assertFalse(result.getPoints1().isEmpty());65 Assert.assertNotNull(result.getRect1());66 Assert.assertFalse(result.getPoints2().isEmpty());67 Assert.assertNotNull(result.getRect2());68 69 LoginPage loginPage = new LoginPage(driver); 70 loginPage.InValidLogin();
...
training.java
Source:training.java
1//import io.appium.java_client.AppiumDriver;2//import io.appium.java_client.TouchAction;3//import io.appium.java_client.android.AndroidDriver;4//import io.appium.java_client.imagecomparison.FeatureDetector;5//import io.appium.java_client.imagecomparison.FeaturesMatchingOptions;6//import io.appium.java_client.imagecomparison.FeaturesMatchingResult;7//import io.appium.java_client.imagecomparison.MatchingFunction;8//import org.apache.commons.codec.binary.Base64;9//import org.openqa.selenium.OutputType;10//import org.openqa.selenium.interactions.Actions;11//import org.testng.annotations.Test;12//import utils.BaseTest;13//import utils.BaseTestMobile;14//15//import javax.imageio.ImageIO;16//import java.awt.image.BufferedImage;17//import java.awt.image.DataBufferByte;18//import java.awt.image.WritableRaster;19//import java.io.File;20//import java.io.IOException;21//import java.nio.file.Path;22//import java.time.Duration;23//24//import static io.appium.java_client.touch.WaitOptions.waitOptions;25//import static io.appium.java_client.touch.offset.PointOption.point;26//import static org.testng.Assert.assertFalse;27//import static org.testng.Assert.assertNotNull;28//29//public class training extends BaseTestMobile {30//31//AppiumDriver driver1;32// @Test33// public void tapByCoordinates () throws InterruptedException {34// Thread.sleep(30000);35// new TouchAction(driver)36// .tap(point(1009,941));37//// .waitAction(waitOptions(Duration.ofMillis(250))).perform();38//39//40//// byte[] screenshot1 = Base64.encodeBase64(driver.getScreenshotAs());41//42//43//// byte[] originalImg = Path44//// byte[] screenshot = Base64.encodeBase64(driver.getScreenshotAs(OutputType.BYTES));45//// FeaturesMatchingResult result = driver46//// .matchImagesFeatures(screenshot, originalImg, new FeaturesMatchingOptions()47//// .withDetectorName(FeatureDetector.ORB)48//// .withGoodMatchesFactor(40)49//// .withMatchFunc(MatchingFunction.BRUTE_FORCE_HAMMING)50//// .withEnabledVisualization());51////52//// assertFalse(result.getPoints1().isEmpty());53//// assertNotNull(result.getRect1());54//// assertFalse(result.getPoints2().isEmpty());55//// assertNotNull(result.getRect2());56// }57//58// public byte[] extractBytes (String ImageName) throws IOException {59// // open image60// File imgPath = new File("C:\\Users\\OSN20933\\Pictures\\stb setup images\\1.png");...
ValidUserLoginTest.java
Source:ValidUserLoginTest.java
...9import org.openqa.selenium.OutputType;10import org.testng.Assert;11import components.BaseClass;12import io.appium.java_client.imagecomparison.FeatureDetector;13import io.appium.java_client.imagecomparison.FeaturesMatchingOptions;14import io.appium.java_client.imagecomparison.FeaturesMatchingResult;15import io.appium.java_client.imagecomparison.MatchingFunction;16import pages.HomePage;17import pages.LoginPage;18import pages.MyProfilePage;1920public class ValidUserLoginTest extends BaseClass {2122 @Test(priority=1)23 public void ValidUserLogin() {2425 try {2627 HomePage homePage = new HomePage(driver);
...
InvalidUserLoginTest.java
Source:InvalidUserLoginTest.java
...11import org.testng.annotations.Test;1213import components.BaseClass;14import io.appium.java_client.imagecomparison.FeatureDetector;15import io.appium.java_client.imagecomparison.FeaturesMatchingOptions;16import io.appium.java_client.imagecomparison.FeaturesMatchingResult;17import io.appium.java_client.imagecomparison.MatchingFunction;18import pages.LoginPage;19import pages.HomePage;2021public class InvalidUserLoginTest extends BaseClass{22 23 @Test24 public void InvalidUserLogin() {25 try {26 27 HomePage homePage = new HomePage(driver);28 homePage.PerformSkip(); 29
...
FeaturesMatchingOptions
Using AI Code Generation
1package com.appium;2import java.io.File;3import java.io.IOException;4import org.openqa.selenium.By;5import org.openqa.selenium.WebElement;6import org.openqa.selenium.remote.DesiredCapabilities;7import io.appium.java_client.AppiumDriver;8import io.appium.java_client.MobileElement;9import io.appium.java_client.TouchAction;10import io.appium.java_client.android.AndroidDriver;11import io.appium.java_client.android.AndroidElement;12import io.appium.java_client.android.AndroidKeyCode;13import io.appium.java_client.imagecomparison.FeaturesMatchingOptions;14import io
FeaturesMatchingOptions
Using AI Code Generation
1import io.appium.java_client.imagecomparison.FeaturesMatchingOptions;2public class FeaturesMatchingOptionsDemo {3 public static void main(String[] args) {4 FeaturesMatchingOptions options = new FeaturesMatchingOptions();5 options.withEnabledVisualization();6 }7}8from appium import webdriver9desired_caps = {}10desired_caps['app'] = PATH('../../apps/ApiDemos-debug.apk')11options = driver.image_comparison.get_features_matching_options()12options.with_enabled_visualization()
FeaturesMatchingOptions
Using AI Code Generation
1import io.appium.java_client.imagecomparison.FeaturesMatchingOptions;2FeaturesMatchingOptions options = new FeaturesMatchingOptions();3options.withEnabledVisualization();4import io.appium.java_client.imagecomparison.ImageComparisonResult;5ImageComparisonResult imageComparisonResult = new ImageComparisonResult();6imageComparisonResult.getMatchPercentage();7imageComparisonResult.getSimilarity();8imageComparisonResult.getVisualization();9from appium.webdriver.imagecomparison import FeaturesMatchingOptions10options = FeaturesMatchingOptions()11options.with_enabled_visualization()12from appium.webdriver.imagecomparison import ImageComparisonResult13image_comparison_result = ImageComparisonResult()14image_comparison_result.get_match_percentage()15image_comparison_result.get_similarity()16image_comparison_result.get_visualization()17opts = Appium.load_appium_txt file: File.expand_path('./ios_appium.txt')18opts = Appium.load_appium_txt file: File.expand_path('./ios_appium.txt')19const { FeaturesMatchingOptions } = require('appium/webdriver/imagecomparison');20const options = new FeaturesMatchingOptions();21options.withEnabledVisualization();22const { ImageComparisonResult } = require('appium/webdriver/imagecomparison');23const imageComparisonResult = new ImageComparisonResult();24imageComparisonResult.getMatchPercentage();25imageComparisonResult.getSimilarity();26imageComparisonResult.getVisualization();
FeaturesMatchingOptions
Using AI Code Generation
1File img1 = new File("path/to/first/image");2File img2 = new File("path/to/second/image");3FeaturesMatchingOptions options = new FeaturesMatchingOptions()4.withEnabledSIFT(true)5.withEnabledSURF(true)6.withMatchMode(FeaturesMatchingOptions.MatchMode.FindAll);7double matchPercentage = driver.compareImages(img1, img2, options);8 .with_enabled_sift(true)9 .with_enabled_surf(true)10 .with_match_mode(Appium::ImageComparison::FeaturesMatchingOptions::MatchMode::FindAll)11match_percentage = @@driver.compare_images(img1, img2, options)12options = FeaturesMatchingOptions()13match_percentage = self.driver.compare_images(img1, img2, options)14options = FeaturesMatchingOptions()15match_percentage = driver.compare_images(img1, img2, options)16var img1 = "path/to/first/image";17var img2 = "path/to/second/image";18var options = new FeaturesMatchingOptions();19options.EnabledSIFT = true;20options.EnabledSURF = true;21options.MatchMode = FeaturesMatchingOptions.MatchMode.FindAll;22var matchPercentage = driver.CompareImages(img1, img2, options);23var img1 = "path/to/first/image";
FeaturesMatchingOptions
Using AI Code Generation
1import io.appium.java_client.imagecomparison.FeaturesMatchingOptions;2import io.appium.java_client.imagecomparison.FeaturesMatchingResult;3import java.io.File;4public class FeaturesMatchingOptionsTest {5 public void testFeaturesMatchingOptions() {6 File baseImage = new File("path/to/base/image");7 File comparisonImage = new File("path/to/comparison/image");8 FeaturesMatchingOptions options = new FeaturesMatchingOptions();9 options.withEnabledVisualization();10 options.withImage(baseImage);11 options.withImage(comparisonImage);12 options.withMatchThreshold(0.9);13 FeaturesMatchingResult result = driver.findImageElement(options);14 System.out.println(result.getScore());15 }16}17from appium.webdriver.imagecomparison import FeaturesMatchingOptions18def test_features_matching_options(self):19 options = FeaturesMatchingOptions()20 options.enabled_visualization()21 options.image(base_image)22 options.image(comparison_image)23 options.match_threshold(0.9)24 result = self.driver.find_image_element(options)25 print(result.score)26 options.image(base_image)27 options.image(comparison_image)28 options.match_threshold(0.9)29const { FeaturesMatchingOptions } = require('appium-image-comparison');30async function testFeaturesMatchingOptions () {31 const baseImage = 'path/to/base/image';32 const comparisonImage = 'path/to/comparison/image';33 const options = new FeaturesMatchingOptions();34 options.enabledVisualization();35 options.image(baseImage);36 options.image(comparisonImage);37 options.matchThreshold(0.9);38 const result = await driver.findImageElement(options);39 console.log(result.score);40}
FeaturesMatchingOptions
Using AI Code Generation
1import java.io.File;2import java.net.MalformedURLException;3import java.net.URL;4import java.util.concurrent.TimeUnit;5import org.openqa.selenium.By;6import org.openqa.selenium.WebElement;7import org.openqa.selenium.remote.DesiredCapabilities;8import org.testng.annotations.AfterTest;9import org.testng.annotations.BeforeTest;10import org.testng.annotations.Test;11import io.appium.java_client.AppiumDriver;12import io.appium.java_client.MobileElement;13import io.appium.java_client.android.AndroidDriver;14import io.appium.java_client.imagecomparison.FeaturesMatchingOptions;15import io.appium.java_client.imagecomparison.FeaturesMatchingResult;16import io.appium.java_client.remote.MobileCapabilityType;17public class AppiumImageComparison {18AppiumDriver<MobileElement> driver;19public void setup() throws MalformedURLException {20DesiredCapabilities caps = new DesiredCapabilities();21caps.setCapability("deviceName", "Pixel 4 API 29");22caps.setCapability("udid", "emulator-5554");23caps.setCapability("platformName", "Android");24caps.setCapability("platformVersion", "10");25caps.setCapability("appPackage", "com.android.calculator2");26caps.setCapability("appActivity", "com.android.calculator2.Calculator");27caps.setCapability("noReset", true);
FeaturesMatchingOptions
Using AI Code Generation
1import io.appium.java_client.imagecomparison.*;2import io.appium.java_client.imagecomparison.featuresmatching.*;3import org.openqa.selenium.WebElement;4WebElement imageElement = driver.findElementByAccessibilityId("imageElement");5WebElement otherImageElement = driver.findElementByAccessibilityId("otherImageElement");6FeaturesMatchingOptions options = new FeaturesMatchingOptions();7options.withEnabledVisualization();8options.withMatchMode(FeaturesMatchingOptions.MatchMode.OPTIMIZATION);9options.withDetectorName(FeaturesMatchingOptions.FeatureDetector.AKAZE);10options.withDescriptorName(FeaturesMatchingOptions.FeatureDescriptor.AKAZE);11options.withMatcherName(FeaturesMatchingOptions.FeatureMatcher.BF);12options.withGoodMatchesFactor(0.3);13options.withVisualizationScale(10);14double matchResult = driver.getImagesSimilarity(imageElement, otherImageElement, options);15System.out.println("Matched Percentage : " + matchResult);16from appium.webdriver.imagecomparison import FeaturesMatchingOptions17image_element = driver.find_element_by_accessibility_id("imageElement")18other_image_element = driver.find_element_by_accessibility_id("otherImageElement")19options = FeaturesMatchingOptions()20options.with_enabled_visualization()21options.with_match_mode(FeaturesMatchingOptions.MatchMode.OPTIMIZATION)22options.with_detector_name(FeaturesMatchingOptions.FeatureDetector.AKAZE)23options.with_descriptor_name(FeaturesMatchingOptions.FeatureDescriptor.AKAZE)24options.with_matcher_name(FeaturesMatchingOptions.FeatureMatcher.BF)25options.with_good_matches_factor(0.3)26options.with_visualization_scale(10)27match_result = driver.get_images_similarity(image_element, other_image_element, options)28print("Matched Percentage : " + str(match_result))29image_element = driver.find_element(:accessibility_id, 'imageElement')30other_image_element = driver.find_element(:accessibility_id, 'otherImageElement')31options.with_match_mode(Appium::ImageComparison::FeaturesMatchingOptions::MatchMode::OPTIMIZATION)32options.with_detector_name(Appium::ImageComparison::FeaturesMatchingOptions::FeatureDetector::AKAZE)33options.with_descriptor_name(Appium::ImageComparison::FeaturesMatchingOptions::FeatureDescriptor::
FeaturesMatchingOptions
Using AI Code Generation
1import io.appium.java_client.AppiumDriver;2import io.appium.java_client.MobileElement;3import io.appium.java_client.android.AndroidDriver;4import io.appium.java_client.imagecomparison.FeaturesMatchingOptions;5import io.appium.java_client.imagecomparison.FeaturesMatchingResult;6import io.appium.java_client.imagecomparison.ImageComparisonFeature;7import org.openqa.selenium.remote.DesiredCapabilities;8import java.net.MalformedURLException;9import java.net.URL;10import java.util.ArrayList;11import java.util.List;12import java.util.concurrent.TimeUnit;13public class FeaturesMatchingOptions {14 public static void main(String[] args) throws MalformedURLException, InterruptedException {15 DesiredCapabilities caps = new DesiredCapabilities();16 caps.setCapability("deviceName", "Pixel_3a_API_30");17 caps.setCapability("platformName", "Android");18 caps.setCapability("automationName", "UiAutomator2");19 caps.setCapability("appPackage", "io.appium.android.apis");20 caps.setCapability("appActivity", ".ApiDemos");21 caps.setCapability("ensureWebviewsHavePages", true);
FeaturesMatchingOptions
Using AI Code Generation
1import java.io.File;2import java.net.MalformedURLException;3import java.net.URL;4import java.util.HashMap;5import java.util.Map;6import java.util.concurrent.TimeUnit;7import org.openqa.selenium.By;8import org.openqa.selenium.WebElement;9import org.openqa.selenium.remote.DesiredCapabilities;10import org.testng.Assert;11import org.testng.annotations.AfterTest;12import org.testng.annotations.BeforeTest;13import org.testng.annotations.Test;14import io.appium.java_client.AppiumDriver;15import io.appium.java_client.MobileElement;16import io.appium.java_client.TouchAction;17import io.appium.java_client.android.AndroidDriver;18import io.appium.java_client.imagecomparison.FeaturesMatchingOptions;19import io.appium.java_client.imagecomparison.FeaturesMatchingResult;20import io.appium.java_client.touch.offset.PointOption;21public class ImageComparison {22 AppiumDriver driver;23 public void setUp() throws MalformedURLException {24 DesiredCapabilities caps = new DesiredCapabilities();25 caps.setCapability("deviceName", "Pixel 3 API 29");26 caps.setCapability("platformName", "Android");27 caps.setCapability("appPackage", "com.android.chrome");28 caps.setCapability("appActivity", "com.google.android.apps.chrome.Main");29 caps.setCapability("noReset", true);
FeaturesMatchingOptions
Using AI Code Generation
1package appium.java;2import java.net.URL;3import java.util.concurrent.TimeUnit;4import org.openqa.selenium.By;5import org.openqa.selenium.remote.DesiredCapabilities;6import org.testng.annotations.AfterTest;7import org.testng.annotations.BeforeTest;8import org.testng.annotations.Test;9import io.appium.java_client.android.AndroidDriver;10import io.appium.java_client.imagecomparison.FeaturesMatchingOptions;11import io.appium.java_client.imagecomparison.MatchResult;12public class FeaturesMatchingOptionsClass {13 AndroidDriver driver;14 public void setup() throws Exception {15 DesiredCapabilities capabilities = new DesiredCapabilities();16 capabilities.setCapability("deviceName", "Android Emulator");17 capabilities.setCapability("platformVersion", "8.0");18 capabilities.setCapability("platformName", "Android");19 capabilities.setCapability("appPackage", "io.appium.android.apis");20 capabilities.setCapability("appActivity", ".ApiDemos");
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!