How to use disconnectDeviceSession method of com.testsigma.agent.services.DriverSessionsService class

Best Testsigma code snippet using com.testsigma.agent.services.DriverSessionsService.disconnectDeviceSession

Source:DriverSessionsService.java Github

copy

Full Screen

...64 public String createSession(DriverSessionRequest driverSessionRequest) throws Exception {65 com.testsigma.agent.dto.WebDriverSettingsDTO webDriverSettingsDTO;66 if (ExecutionLabType.Hybrid.equals(driverSessionRequest.getExecutionLabType())67 && WorkspaceType.isMobileApp(driverSessionRequest.getWorkspaceType())) {68 disconnectDeviceSession(driverSessionRequest.getUniqueId());69 driverSessionRequest.setWebDriverServerUrl(new URL(mobileAutomationServer.getServerURL()));70 }71 webDriverSettingsDTO = fetchWebDriverSettings(driverSessionRequest);72 log.info("Creating a remote web driver session with settings - " + webDriverSettingsDTO);73 TestsigmaDriver testsigmaDriver = getDriverInstance(driverSessionRequest);74 List<WebDriverCapability> caps = webDriverSettingsDTO.getWebDriverCapabilities();75 addMissingTimeOutCapability(caps);76 handleLocalDevice(caps, driverSessionRequest);77 setRemoteServerURL(testsigmaDriver, driverSessionRequest, webDriverSettingsDTO);78 testsigmaDriver.setCapabilities(caps);79 RemoteWebDriver remoteWebDriver = testsigmaDriver.createSession();80 String sessionId = populateSessionIdMaps(remoteWebDriver, driverSessionRequest);81 sendMobileSessionStartedRequest(sessionId, driverSessionRequest);82 return sessionId;83 }84 private com.testsigma.agent.dto.WebDriverSettingsDTO fetchWebDriverSettings(DriverSessionRequest driverSessionRequest)85 throws IOException, TestsigmaException {86 HttpResponse<com.testsigma.agent.dto.WebDriverSettingsDTO> response;87 String authHeader = null;88 if (agentConfig.getJwtApiKey() == null) {89 authHeader = WebAppHttpClient.BEARER + " " + driverSessionRequest.getJwtApiKey();90 } else {91 authHeader = WebAppHttpClient.BEARER + " " + agentConfig.getJwtApiKey();92 }93 response = httpClient.post(ServerURLBuilder.webDriverSettingsURL(), driverSessionRequest, new TypeReference<>() {94 }, authHeader);95 if (response.getStatusCode() != HttpStatus.OK.value()) {96 throw new TestsigmaException("Could not fetch web driver settings from server "97 + response.getStatusCode() + " - " + response.getStatusMessage());98 }99 return response.getResponseEntity();100 }101 private String populateSessionIdMaps(RemoteWebDriver remoteWebDriver, DriverSessionRequest driverSessionRequest)102 throws Exception {103 String sessionId = remoteWebDriver.getSessionId().toString();104 if (sessionContainer.getDeviceToSessionMap().containsKey(driverSessionRequest.getUniqueId())) {105 deleteSession(sessionContainer.getDeviceToSessionMap().get(driverSessionRequest.getUniqueId()));106 }107 sessionContainer.getSessionMap().put(sessionId, remoteWebDriver);108 sessionContainer.getSessionToDeviceIdMap().put(sessionId, driverSessionRequest.getUniqueId());109 sessionContainer.getDeviceToSessionMap().put(driverSessionRequest.getUniqueId(), sessionId);110 return sessionId;111 }112 private void addMissingTimeOutCapability(List<WebDriverCapability> caps) {113 WebDriverCapability newCommandTimeoutCapability = caps.stream().filter(cap -> cap.getCapabilityName()114 .equals(TSCapabilityType.NEW_COMMAND_TIMEOUT)).findFirst().orElse(null);115 if (newCommandTimeoutCapability == null) {116 caps.add(new WebDriverCapability(TSCapabilityType.NEW_COMMAND_TIMEOUT, 0));117 }118 }119 private void setRemoteServerURL(TestsigmaDriver testsigmaDriver, DriverSessionRequest driverSessionRequest,120 WebDriverSettingsDTO webDriverSettingsDTO) throws MalformedURLException {121 if (driverSessionRequest.getExecutionLabType().equals(ExecutionLabType.Hybrid)) {122 testsigmaDriver.setRemoteServerURL(new URL(mobileAutomationServerService.getMobileAutomationServer().getServerURL()));123 } else {124 testsigmaDriver.setRemoteServerURL(webDriverSettingsDTO.getWebDriverServerUrl());125 }126 }127 private void handleLocalDevice(List<WebDriverCapability> caps, DriverSessionRequest driverSessionRequest)128 throws TestsigmaException, AutomatorException {129 if (driverSessionRequest.getExecutionLabType().equals(ExecutionLabType.Hybrid)) {130 appendChromeDriverExecutable(caps, driverSessionRequest);131 if (driverSessionRequest.getWorkspaceType() == WorkspaceType.IOSNative) {132 setupIosDevice(caps, driverSessionRequest);133 }134 }135 }136 private void appendChromeDriverExecutable(List<WebDriverCapability> caps, DriverSessionRequest driverSessionRequest)137 throws TestsigmaException {138 MobileDevice device = deviceContainer.getDevice(driverSessionRequest.getUniqueId());139 if (device.getBrowserList() != null && device.getBrowserList().size() > 0) {140 AgentBrowser browser = device.getBrowserList().get(0);141 File chromePath = driverExecutableExists(Browsers.GoogleChrome.getKey(),142 browser.getMajorVersion() + "");143 if (chromePath != null) {144 WebDriverCapability cap = new WebDriverCapability(TSCapabilityType.CHROME_DRIVER_EXECUTABLE, chromePath.getAbsolutePath());145 caps.add(cap);146 } else {147 log.warn("Chrome Driver is not yet downloaded.. please try after some time");148 }149 }150 }151 public void setupIosDevice(List<WebDriverCapability> caps, DriverSessionRequest driverSessionRequest)152 throws TestsigmaException, AutomatorException {153 MobileDevice device = deviceContainer.getDevice(driverSessionRequest.getUniqueId());154 iosDeviceService.setupWda(device);155 WebDriverCapability bundleIdCapability = caps.stream().filter(cap -> cap.getCapabilityName()156 .equals(TSCapabilityType.BUNDLE_ID)).findFirst().orElse(null);157 if ((bundleIdCapability == null) || StringUtils.isBlank((String) bundleIdCapability.getCapabilityValue())) {158 WebDriverCapability appCapability = caps.stream().filter(cap -> cap.getCapabilityName()159 .equals(MobileCapabilityType.APP)).findFirst().orElse(null);160 AppPathType appPathType = driverSessionRequest.getApplicationPathType();161 if ((appCapability != null) && appPathType != AppPathType.APP_DETAILS) {162 caps.remove(appCapability);163 String appPresignedUrl = (String) appCapability.getCapabilityValue();164 String bundleId = iosDeviceService.installApp(device, appPresignedUrl, device.getIsEmulator());165 caps.add(new WebDriverCapability(TSCapabilityType.BUNDLE_ID, bundleId));166 }167 }168 }169 private TestsigmaDriver getDriverInstance(DriverSessionRequest driverSessionRequest) {170 TestsigmaDriver testsigmaDriver = new TestsigmaDriver();171 if (Platform.Android.equals(driverSessionRequest.getPlatform())) {172 testsigmaDriver = new AndroidDriver();173 } else if (Platform.iOS.equals(driverSessionRequest.getPlatform())) {174 testsigmaDriver = new IosDriver();175 }176 return testsigmaDriver;177 }178 public void deleteSession(String sessionId) throws Exception {179 log.debug("Removing session from appium server");180 RemoteWebDriver remoteWebDriver = sessionContainer.getSessionMap().get(sessionId);181 new TestsigmaDriver().deleteSession(remoteWebDriver);182 if (sessionContainer.getSessionMap().containsKey(sessionId)) {183 sessionContainer.getSessionMap().remove(sessionId);184 String deviceId = sessionContainer.getSessionToDeviceIdMap().get(sessionId);185 sessionContainer.getSessionToDeviceIdMap().remove(sessionId);186 sessionContainer.getDeviceToSessionMap().remove(deviceId);187 if (deviceContainer != null && deviceContainer.getDeviceMap().containsKey(deviceId)) {188 MobileDevice device = deviceContainer.getDevice(deviceId);189 if((device != null) && (device.getOsName() == MobileOs.IOS)) {190 iosDeviceService.cleanupWda(device);191 } else {192 log.info("Device os is not iOS. Skipping WDA cleanup");193 }194 }195 } else {196 log.info("Session ID - " + sessionId + " doesn't exist.");197 }198 }199 public String getSession(String sessionId) throws Exception {200 RemoteWebDriver remoteWebDriver = sessionContainer.getSessionMap().get(sessionId);201 Response response = remoteWebDriver.getCommandExecutor().execute(new Command(new SessionId(sessionId), "status"));202 return response.getState() + "-" + response.getStatus();203 }204 public void disconnectDeviceSession(String uniqueId) throws Exception {205 String sessionId = sessionContainer.getDeviceToSessionMap().get(uniqueId);206 if (sessionId != null) {207 log.debug("Detected an existing inspection session for device - " + uniqueId + " , Stopping the session.");208 deleteSession(sessionId);209 }210 }211 private void sendMobileSessionStartedRequest(String sessionId, DriverSessionRequest driverSessionRequest)212 throws IOException {213 MobileInspectionRequest mobileInspectionRequest = new MobileInspectionRequest();214 mobileInspectionRequest.setId(driverSessionRequest.getMobileSessionId());215 mobileInspectionRequest.setStatus(MobileInspectionStatus.STARTED);216 mobileInspectionRequest.setStartedAt(new Timestamp(System.currentTimeMillis()));217 mobileInspectionRequest.setLastActiveAt(new Timestamp(System.currentTimeMillis()));218 mobileInspectionRequest.setSessionId(sessionId);...

Full Screen

Full Screen

Source:DeviceListener.java Github

copy

Full Screen

...64 deviceContainer.addDevice(device);65 }66 public void removeDevice(MobileDevice device) throws DeviceContainerException {67 try {68 driverSessionsService.disconnectDeviceSession(device.getUniqueId());69 } catch (Exception e) {70 log.error(e.getMessage(), e);71 }72 deviceContainer.deleteDevice(device.getUniqueId());73 }74 public void updateDevice(MobileDevice device) throws DeviceContainerException {75 this.addDevice(device);76 }77 public abstract void getInitialDeviceList() throws TestsigmaException, DeviceContainerException;78 public abstract void initializeNativeBridge() throws TestsigmaException, NativeBridgeException;79 public abstract void addDeviceListenerCallback() throws TestsigmaException;80 public boolean shouldListen() {81 boolean listen = true;82 if (agentConfig.getRegistered().equals(Boolean.FALSE)) {...

Full Screen

Full Screen

disconnectDeviceSession

Using AI Code Generation

copy

Full Screen

1package com.testsigma.agent.services;2import java.io.IOException;3import org.apache.http.HttpResponse;4import org.apache.http.ParseException;5import org.apache.http.client.ClientProtocolException;6import org.apache.http.client.HttpClient;7import org.apache.http.client.methods.HttpPost;8import org.apache.http.impl.client.HttpClientBuilder;9import org.apache.http.util.EntityUtils;10public class DriverSessionsService {11 public static void main(String[] args) throws ParseException, IOException {12 HttpClient client = HttpClientBuilder.create().build();13 HttpResponse response = client.execute(post);14 System.out.println(EntityUtils.toString(response.getEntity()));15 }16}17package com.testsigma.agent.services;18import java.io.IOException;19import org.apache.http.HttpResponse;20import org.apache.http.ParseException;21import org.apache.http.client.ClientProtocolException;22import org.apache.http.client.HttpClient;23import org.apache.http.client.methods.HttpGet;24import org.apache.http.impl.client.HttpClientBuilder;25import org.apache.http.util.EntityUtils;26public class DriverSessionsService {27 public static void main(String[] args) throws ParseException, IOException {28 HttpClient client = HttpClientBuilder.create().build();29 HttpResponse response = client.execute(get);30 System.out.println(EntityUtils.toString(response.getEntity()));31 }32}33package com.testsigma.agent.services;34import java.io.IOException;35import org.apache.http.HttpResponse;36import org.apache.http.ParseException;37import org.apache.http.client.ClientProtocolException;38import org.apache.http.client.HttpClient;39import org.apache.http.client.methods.HttpGet;40import org.apache.http.impl.client.HttpClientBuilder;41import org.apache.http.util.EntityUtils;42public class DriverSessionsService {43 public static void main(String[] args) throws ParseException, IOException {44 HttpClient client = HttpClientBuilder.create().build();

Full Screen

Full Screen

disconnectDeviceSession

Using AI Code Generation

copy

Full Screen

1package com.testsigma.agent.services;2import java.util.HashMap;3import java.util.Map;4import java.util.concurrent.TimeUnit;5import org.openqa.selenium.By;6import org.openqa.selenium.WebDriver;7import org.openqa.selenium.WebElement;8import org.openqa.selenium.remote.DesiredCapabilities;9import org.openqa.selenium.remote.RemoteWebDriver;10import org.openqa.selenium.support.ui.ExpectedConditions;11import org.openqa.selenium.support.ui.WebDriverWait;12public class DriverSessionsService {13public static void main(String[] args) throws Exception {14DesiredCapabilities capabilities = new DesiredCapabilities();15capabilities.setCapability("deviceName", "Pixel 3a XL");16capabilities.setCapability("platformName", "Android");17capabilities.setCapability("platformVersion", "10");18capabilities.setCapability("automationName", "UiAutomator2");19capabilities.setCapability("appPackage", "com.android.chrome");20capabilities.setCapability("appActivity", "com.google.android.apps.chrome.Main");21capabilities.setCapability("noReset", true);22capabilities.setCapability("fullReset", false);23capabilities.setCapability("unicodeKeyboard", true);24capabilities.setCapability("resetKeyboard", true);25capabilities.setCapability("chromedriverExecutableDir", "/usr/local/bin");26capabilities.setCapability("chromedriverUseSystemExecutable", true);27capabilities.setCapability("chromedriverExecutable", "/usr/local/bin/chromedriver");28capabilities.setCapability("chromedriverExecutableDir", "/usr/local/bin");29capabilities.setCapability("chromedriverUseSystemExecutable", true);30capabilities.setCapability("chromedriverExecutable", "/usr/local/bin/chromedriver");31driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);32WebElement element = driver.findElement(By.name("q"));33element.sendKeys("Appium");34element.submit();35System.out.println("Page title is: " + driver.getTitle());36WebDriverWait wait = new WebDriverWait(driver, 10);37driver.quit();38}39}40package com.testsigma.agent.services;41import java.util.HashMap;42import java.util.Map;43import java.util.concurrent.TimeUnit;44import org.openqa.selenium.By;45import org.openqa.selenium.WebDriver;46import org.openqa.selenium.WebElement;47import org.openqa.selenium.remote.Desired

Full Screen

Full Screen

disconnectDeviceSession

Using AI Code Generation

copy

Full Screen

1package com.testsigma.agent.services;2import java.net.MalformedURLException;3import java.net.URL;4import org.openqa.selenium.remote.DesiredCapabilities;5import org.openqa.selenium.remote.RemoteWebDriver;6import org.testng.annotations.Test;7public class DriverSessionsServiceTest {8 public void testDisconnectDeviceSession() {9 RemoteWebDriver driver = null;10 try {

Full Screen

Full Screen

disconnectDeviceSession

Using AI Code Generation

copy

Full Screen

1package com.testsigma.agent.services;2import com.testsigma.agent.services.DriverSessionsService;3public class DisconnectDeviceSession {4 public static void main(String[] args) {5 DriverSessionsService driverSessionsService = new DriverSessionsService();6 driverSessionsService.disconnectDeviceSession("deviceSessionId");7 }8}9package com.testsigma.agent.services;10import com.testsigma.agent.services.DriverSessionsService;11public class GetDeviceSession {12 public static void main(String[] args) {13 DriverSessionsService driverSessionsService = new DriverSessionsService();14 driverSessionsService.getDeviceSession("deviceSessionId");15 }16}17package com.testsigma.agent.services;18import com.testsigma.agent.services.DriverSessionsService;19public class GetDeviceSessions {20 public static void main(String[] args) {21 DriverSessionsService driverSessionsService = new DriverSessionsService();22 driverSessionsService.getDeviceSessions();23 }24}25package com.testsigma.agent.services;26import com.testsigma.agent.services.DriverSessionsService;27public class IsDeviceSessionActive {28 public static void main(String[] args) {29 DriverSessionsService driverSessionsService = new DriverSessionsService();30 driverSessionsService.isDeviceSessionActive("deviceSessionId");31 }32}33package com.testsigma.agent.services;34import com.testsigma.agent.services.DriverSessionsService;35public class IsDeviceSessionConnected {36 public static void main(String[] args) {37 DriverSessionsService driverSessionsService = new DriverSessionsService();38 driverSessionsService.isDeviceSessionConnected("deviceSessionId");39 }40}41package com.testsigma.agent.services;42import com.testsigma.agent.services.DriverSessionsService;43public class StartDeviceSession {44 public static void main(String[] args) {45 DriverSessionsService driverSessionsService = new DriverSessionsService();46 driverSessionsService.startDeviceSession("deviceSessionId");47 }48}

Full Screen

Full Screen

disconnectDeviceSession

Using AI Code Generation

copy

Full Screen

1package com.testsigma.agent.services;2import com.testsigma.agent.services.DriverSessionsService;3import com.testsigma.agent.services.DriverSessionsServiceFactory;4public class DisconnectDeviceSession {5 public static void main(String[] args) {6 DriverSessionsService driverSessionsService = DriverSessionsServiceFactory.getDriverSessionsService();7 driverSessionsService.disconnectDeviceSession("deviceSessionId");8 }9}10package com.testsigma.agent.services;11import com.testsigma.agent.services.DriverSessionsService;12import com.testsigma.agent.services.DriverSessionsServiceFactory;13public class GetDeviceSession {14 public static void main(String[] args) {15 DriverSessionsService driverSessionsService = DriverSessionsServiceFactory.getDriverSessionsService();16 driverSessionsService.getDeviceSession("deviceSessionId");17 }18}19package com.testsigma.agent.services;20import com.testsigma.agent.services.DriverSessionsService;21import com.testsigma.agent.services.DriverSessionsServiceFactory;22public class GetDeviceSessions {23 public static void main(String[] args) {24 DriverSessionsService driverSessionsService = DriverSessionsServiceFactory.getDriverSessionsService();25 driverSessionsService.getDeviceSessions();26 }27}28package com.testsigma.agent.services;29import com.testsigma.agent.services.DriverSessionsService;30import com.testsigma.agent.services.DriverSessionsServiceFactory;31public class GetDeviceSessionsByDeviceId {32 public static void main(String[] args) {33 DriverSessionsService driverSessionsService = DriverSessionsServiceFactory.getDriverSessionsService();34 driverSessionsService.getDeviceSessionsByDeviceId("deviceId");35 }36}37package com.testsigma.agent.services;38import com.testsigma.agent.services.DriverSessionsService;39import com.testsigma.agent.services.DriverSessionsServiceFactory;40public class GetDeviceSessionsByDeviceType {41 public static void main(String[] args) {42 DriverSessionsService driverSessionsService = DriverSessionsServiceFactory.getDriverSessionsService();43 driverSessionsService.getDeviceSessionsByDeviceType("deviceType");44 }45}

Full Screen

Full Screen

disconnectDeviceSession

Using AI Code Generation

copy

Full Screen

1import com.testsigma.agent.services.DriverSessionsService;2import com.testsigma.agent.services.DriverSessionsServiceLocator;3import com.testsigma.agent.services.DriverSessionsServiceSoapBindingStub;4import com.testsigma.agent.services.DriverSessionsService_PortType;5import com.testsigma.agent.services.Device;6import java.net.URL;7import java.util.Properties;8import java.io.FileInputStream;9import java.io.IOException;10import java.io.FileNotFoundException;11import java.io.File;12import java.io.InputStream;13import java.io.BufferedReader;14import java.io.InputStreamReader;15import java.io.PrintWriter;16import java.io.FileWriter;17import java.io.FileReader;18import java.io.BufferedWriter;19import java.io.FileNotFoundException;20import java.io.IOException;21import java.io.FileOutputStream;22import java.io.OutputStream;23import java.io.OutputStreamWriter;24import java.io.UnsupportedEncodingException;25import java.util.ArrayList;26import java.util.List;27import java.util.Arrays;28import java.util.HashMap;29import java.util.Map;30import java.util.Iterator;31import java.util.Set;32import java.util.Map.Entry;33import java.util.Collections;34import java.util.Comparator;35import java.util.Date;36import java.text.SimpleDateFormat;37import java.text.DateFormat;38import java.util.Calendar;39import java.util.Properties;40import java.util.concurrent.TimeUnit;41import java.util.regex.Matcher;42import java.util.regex.Pattern;43import java.util.concurrent.TimeUnit;44import java.util.concurrent.TimeoutException;45import java.util.concurrent.atomic.AtomicInteger;46import java.util.concurrent.atomic.AtomicLong;47import java.util.concurrent.atomic.AtomicBoolean;48import java.util.concurrent.locks.Lock;49import java.util.concurrent.locks.ReentrantLock;50import java.util.concurrent.locks.Condition;51import java.util.concurrent.CountDownLatch;52import java.util.concurrent.Semaphore;53import java.util.concurrent.Executors;54import java.util.concurrent.ExecutorService;55import java.util.concurrent.Executor;56import java.util.concurrent.ThreadPoolExecutor;57import java.util.concurrent.Future;58import java.util.concurrent.ExecutionException;59import java.util.concurrent.Callable;60import java.util.concurrent.TimeoutException;61import java.util.concurrent.CancellationException;62import java.util.concurrent.RejectedExecutionException;63import java.util.concurrent.ThreadFactory;64import java.util.concurrent.ScheduledThreadPoolExecutor;65import java.util.concurrent.ScheduledFuture;66import java.util.concurrent.ScheduledExecutorService;67import java.util.concurrent.ExecutionException;68import java.util.concurrent.TimeUnit;69import java.util.concurrent.TimeoutException;70import java.util.concurrent.atomic.AtomicInteger;71import java.util.concurrent.atomic.AtomicLong;72import java.util.concurrent.atomic.AtomicBoolean;73import java.util.concurrent.locks.Lock;74import java.util.concurrent.locks.ReentrantLock;75import java

Full Screen

Full Screen

disconnectDeviceSession

Using AI Code Generation

copy

Full Screen

1package com.testsigma.agent.services;2import org.openqa.selenium.remote.RemoteWebDriver;3import com.testsigma.agent.services.DriverSessionsService;4public class DisconnectDeviceSession {5 public static void main(String[] args) {6 RemoteWebDriver driver = new RemoteWebDriver();7 DriverSessionsService sessionService = new DriverSessionsService(driver);8 sessionService.disconnectDeviceSession();9 }10}11package com.testsigma.agent.services;12import org.openqa.selenium.remote.RemoteWebDriver;13import com.testsigma.agent.services.DriverSessionsService;14public class GetDeviceSessionId {15 public static void main(String[] args) {16 RemoteWebDriver driver = new RemoteWebDriver();17 DriverSessionsService sessionService = new DriverSessionsService(driver);18 String sessionId = sessionService.getDeviceSessionId();19 }20}21package com.testsigma.agent.services;22import org.openqa.selenium.remote.RemoteWebDriver;23import com.testsigma.agent.services.DriverSessionsService;24public class IsDeviceSessionActive {25 public static void main(String[] args) {26 RemoteWebDriver driver = new RemoteWebDriver();27 DriverSessionsService sessionService = new DriverSessionsService(driver);28 boolean isActive = sessionService.isDeviceSessionActive();29 }30}31package com.testsigma.agent.services;32import org.openqa.selenium.remote.RemoteWebDriver;33import com.testsigma.agent.services.DriverSessionsService;34public class IsDeviceSessionConnected {35 public static void main(String[] args) {36 RemoteWebDriver driver = new RemoteWebDriver();37 DriverSessionsService sessionService = new DriverSessionsService(driver);38 boolean isConnected = sessionService.isDeviceSessionConnected();39 }40}41package com.testsigma.agent.services;42import org.openqa.selenium.remote.RemoteWebDriver;43import com.testsigma.agent.services.DriverSessionsService;

Full Screen

Full Screen

disconnectDeviceSession

Using AI Code Generation

copy

Full Screen

1import com.testsigma.agent.services.DriverSessionsService;2import com.testsigma.agent.services.DriverSessionsServiceFactory;3public class DisconnectDeviceSession {4public static void main(String[] args) {5DriverSessionsService driverSessionsService = DriverSessionsServiceFactory.getDriverSessionsService();6driverSessionsService.disconnectDeviceSession("yourDeviceSessionId");7}8}

Full Screen

Full Screen

Automation Testing Tutorials

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.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful