How to use getName method of com.qaprosoft.carina.core.foundation.webdriver.CarinaDriver class

Best Carina code snippet using com.qaprosoft.carina.core.foundation.webdriver.CarinaDriver.getName

Source:IDriverPool.java Github

copy

Full Screen

...220 CarinaDriver carinaDrv = null;221 Long threadId = Thread.currentThread().getId();222 POOL_LOGGER.debug("before quitDriver: " + driversPool);223 for (CarinaDriver carinaDriver : driversPool) {224 if ((Phase.BEFORE_SUITE.equals(carinaDriver.getPhase()) && name.equals(carinaDriver.getName()))225 || (threadId.equals(carinaDriver.getThreadId()) && name.equals(carinaDriver.getName()))) {226 drv = carinaDriver.getDriver();227 carinaDrv = carinaDriver;228 break;229 }230 }231 if (drv == null || carinaDrv == null) {232 throw new RuntimeException("Unable to find driver '" + name + "'!");233 }234 235 quitDriver(carinaDrv, false);236 driversPool.remove(carinaDrv);237 POOL_LOGGER.debug("after quitDriver: " + driversPool);238 }239 /**240 * Quit current drivers by phase(s). "Current" means assigned to the current test/thread.241 * 242 * @param phase243 * Comma separated driver phases to quit244 */245 default public void quitDrivers(Phase...phase) {246 List<Phase> phases = Arrays.asList(phase);247 Set<CarinaDriver> drivers4Remove = new HashSet<CarinaDriver>();248 Long threadId = Thread.currentThread().getId();249 for (CarinaDriver carinaDriver : driversPool) {250 if ((phases.contains(carinaDriver.getPhase()) && threadId.equals(carinaDriver.getThreadId()))251 || phases.contains(Phase.ALL)) {252 quitDriver(carinaDriver, false);253 drivers4Remove.add(carinaDriver);254 }255 }256 driversPool.removeAll(drivers4Remove);257 removeCapabilities();258 // don't use modern removeIf as it uses iterator!259 // driversPool.removeIf(carinaDriver -> phase.equals(carinaDriver.getPhase()) && threadId.equals(carinaDriver.getThreadId()));260 }261 262 /**263 * Set custom capabilities.264 * 265 * @param caps capabilities266 */267 default public void setCapabilities(DesiredCapabilities caps) {268 customCapabilities.set(caps);269 }270 271 /**272 * Remove custom capabilities.273 */274 default public void removeCapabilities() {275 customCapabilities.remove();276 } 277 278 private void quitDriver(CarinaDriver carinaDriver, boolean keepProxyDuring) {279 try {280 carinaDriver.getDevice().disconnectRemote();281 282 // castDriver to disable DriverListener operations on quit283 WebDriver drv = castDriver(carinaDriver.getDriver());284 POOL_LOGGER.debug("start driver quit: " + carinaDriver.getName());285 286 Future<?> future = Executors.newSingleThreadExecutor().submit(new Callable<Void>() {287 public Void call() throws Exception {288 if (Configuration.getBoolean(Parameter.CHROME_CLOSURE)) {289 // workaround to not cleaned chrome profiles on hard drive290 POOL_LOGGER.debug("Starting drv.close()");291 drv.close();292 POOL_LOGGER.debug("Finished drv.close()");293 }294 POOL_LOGGER.debug("Starting drv.quit()");295 drv.quit();296 POOL_LOGGER.debug("Finished drv.quit()");297 return null;298 }299 });300 301 // default timeout for driver quit 1/2 of explicit302 long timeout = Configuration.getInt(Parameter.EXPLICIT_TIMEOUT) / 2;303 try {304 future.get(timeout, TimeUnit.SECONDS);305 } catch (InterruptedException e) {306 POOL_LOGGER.error("InterruptedException: Unable to quit driver!", e);307 Thread.currentThread().interrupt();308 } catch (ExecutionException e) {309 if (e.getMessage() != null && e.getMessage().contains("not found in active sessions")) {310 POOL_LOGGER.warn("Skip driver quit for already disconnected session!");311 } else {312 POOL_LOGGER.error("ExecutionException: Unable to quit driver!", e);313 }314 } catch (java.util.concurrent.TimeoutException e) {315 POOL_LOGGER.error("Unable to quit driver for " + timeout + "sec!", e);316 }317 } catch (WebDriverException e) {318 POOL_LOGGER.debug("Error message detected during driver quit!", e);319 // do nothing320 } catch (Exception e) {321 POOL_LOGGER.error("Error discovered during driver quit!", e);322 } finally {323 POOL_LOGGER.debug("finished driver quit: " + carinaDriver.getName());324 if (!keepProxyDuring) {325 ProxyPool.stopProxy();326 }327 }328 }329 330 private WebDriver castDriver(WebDriver drv) {331 if (drv instanceof EventFiringWebDriver) {332 drv = ((EventFiringWebDriver) drv).getWrappedDriver();333 }334 return drv; 335 } 336 337 /**338 * Create driver with custom capabilities339 * 340 * @param name341 * String driver name342 * @param capabilities343 * DesiredCapabilities344 * @param seleniumHost345 * String346 * @return WebDriver347 */348 private WebDriver createDriver(String name, DesiredCapabilities capabilities, String seleniumHost) {349 int count = 0;350 WebDriver drv = null;351 Device device = nullDevice;352 // 1 - is default run without retry353 int maxCount = Configuration.getInt(Parameter.INIT_RETRY_COUNT) + 1;354 while (drv == null && count++ < maxCount) {355 try {356 POOL_LOGGER.debug("initDriver start...");357 358 Long threadId = Thread.currentThread().getId();359 ConcurrentHashMap<String, CarinaDriver> currentDrivers = getDrivers();360 int maxDriverCount = Configuration.getInt(Parameter.MAX_DRIVER_COUNT);361 if (currentDrivers.size() == maxDriverCount) {362 Assert.fail("Unable to create new driver as you reached max number of drivers per thread: " + maxDriverCount + "!" +363 " Override max_driver_count to allow more drivers per test!");364 }365 // [VD] pay attention that similar piece of code is copied into the DriverPoolTest as registerDriver method!366 if (currentDrivers.containsKey(name)) {367 // [VD] moved containsKey verification before the driver start368 Assert.fail("Driver '" + name + "' is already registered for thread: " + threadId);369 }370 371 drv = DriverFactory.create(name, capabilities, seleniumHost);372 373 if (currentDevice.get() != null) {374 device = currentDevice.get();375 }376 377 CarinaDriver carinaDriver = new CarinaDriver(name, drv, device, TestPhase.getActivePhase(), threadId);378 driversPool.add(carinaDriver);379 POOL_LOGGER.debug("initDriver finish...");380 381 if (Configuration.getBoolean(Parameter.BROWSERMOB_PROXY)) {382 if (!device.isNull()) {383 int proxyPort;384 try {385 proxyPort = Integer.parseInt(device.getProxyPort());386 } catch (NumberFormatException e) {387 // use default from _config.properties. Use-case for388 // iOS devices which doesn't have proxy_port as part389 // of capabilities390 proxyPort = ProxyPool.getProxyPortFromConfig();391 }392 ProxyPool.startProxy(proxyPort);393 }394 }395 } catch (Exception e) {396 device.disconnectRemote();397 //TODO: [VD] think about excluding device from pool for explicit reasons like out of space etc398 // but initially try to implement it on selenium-hub level399 String msg = String.format("Driver initialization '%s' FAILED! Retry %d of %d time - %s", name, count,400 maxCount, e.getMessage());401 402 if (count == maxCount) {403 throw e;404 } else {405 // do not provide huge stacktrace as more retries exists. Only latest will generate full error + stacktrace406 POOL_LOGGER.error(msg); 407 }408 CommonUtils.pause(Configuration.getInt(Parameter.INIT_RETRY_INTERVAL));409 }410 }411 412 if (drv == null) {413 throw new RuntimeException("Undefined exception detected! Analyze above logs for details.");414 }415 return drv;416 }417 /**418 * Verify if driver is registered in the DriverPool419 * 420 * @param name421 * String driver name422 *423 * @return boolean424 */425 default boolean isDriverRegistered(String name) {426 return getDrivers().containsKey(name);427 }428 /**429 * Return all drivers registered in the DriverPool for this thread including430 * on Before Suite/Class/Method stages431 * 432 * @return ConcurrentHashMap of driver names and Carina WebDrivers433 * 434 */435 default ConcurrentHashMap<String, CarinaDriver> getDrivers() {436 Long threadId = Thread.currentThread().getId();437 ConcurrentHashMap<String, CarinaDriver> currentDrivers = new ConcurrentHashMap<String, CarinaDriver>();438 for (CarinaDriver carinaDriver : driversPool) {439 if (Phase.BEFORE_SUITE.equals(carinaDriver.getPhase())) {440 currentDrivers.put(carinaDriver.getName(), carinaDriver);441 } else if (threadId.equals(carinaDriver.getThreadId())) {442 currentDrivers.put(carinaDriver.getName(), carinaDriver);443 }444 }445 return currentDrivers;446 }447 // ------------------------ DEVICE POOL METHODS -----------------------448 /**449 * Get device registered to default driver. If no default driver discovered nullDevice will be returned.450 * 451 * @return default Device452 */453 default public Device getDevice() {454 return getDevice(DEFAULT);455 }456 /**457 * Get device registered to named driver. If no driver discovered nullDevice will be returned.458 * 459 * @param name460 * String driver name461 * @return Device462 */463 default public Device getDevice(String name) {464 if (isDriverRegistered(name)) {465 return getDrivers().get(name).getDevice();466 } else {467 return nullDevice;468 }469 470 }471 472 /**473 * Get device registered to driver. If no driver discovered nullDevice will be returned.474 * 475 * @param drv476 * WebDriver477 * @return Device478 */479 default public Device getDevice(WebDriver drv) {480 Device device = nullDevice;481 482 for (CarinaDriver carinaDriver : driversPool) {483 if (carinaDriver.getDriver().equals(drv)) {484 device = carinaDriver.getDevice();485 break;486 }487 }488 489 return device;490 }491 /**492 * Register device information for current thread by MobileFactory and clear SysLog for Android only493 * 494 * @param device495 * String Device device496 * 497 * @return Device device498 * 499 */500 public static Device registerDevice(Device device) {501 boolean enableAdb = R.CONFIG.getBoolean(SpecialKeywords.ENABLE_ADB);502 if (enableAdb) {503 device.connectRemote();504 }505 // register current device to be able to transfer it into Zafira at the end of the test506 long threadId = Thread.currentThread().getId();507 POOL_LOGGER.debug("Set current device '" + device.getName() + "' to thread: " + threadId);508 currentDevice.set(device);509 510 Label.attachToTest("device", device.getName());511 POOL_LOGGER.debug("register device for current thread id: " + threadId + "; device: '" + device.getName() + "'");512 return device;513 }514 /**515 * Return last registered device information for current thread.516 * 517 * @return Device device518 * 519 */520 @Deprecated521 public static Device getDefaultDevice() {522 long threadId = Thread.currentThread().getId();523 Device device = currentDevice.get();524 if (device == null) {525 device = nullDevice;526 } else if (device.getName().isEmpty()) {527 POOL_LOGGER.debug("Current device name is empty! nullDevice was used for thread: " + threadId);528 } else {529 POOL_LOGGER.debug("Current device name is '" + device.getName() + "' for thread: " + threadId);530 }531 return device;532 }533 /**534 * Return nullDevice object to avoid NullPointerException and tons of verification across carina-core modules.535 * 536 * @return Device device537 * 538 */539 public static Device getNullDevice() {540 return nullDevice;541 }542 /**543 * Verify if device is registered in the Pool...

Full Screen

Full Screen

Source:CucumberBaseTest.java Github

copy

Full Screen

...55 WebDriver drv = entry.getValue().getDriver();56 if (drv instanceof EventFiringWebDriver) {57 drv = ((EventFiringWebDriver) drv).getWrappedDriver();58 }59 screenId = Screenshot.capture(drv, driverName + ": " + scenario.getName()); // in case of failure60 LOGGER.debug("cucumber screenshot generated: " + screenId);61 }62 }63 }64}...

Full Screen

Full Screen

Source:CarinaDriver.java Github

copy

Full Screen

...37 }38 public Device getDevice() {39 return device;40 }41 public String getName() {42 return name;43 }44 public long getThreadId() {45 return threadId;46 }47 public Phase getPhase() {48 return phase;49 }50 protected void setThreadId(long threadId) {51 this.threadId = threadId;52 }53}...

Full Screen

Full Screen

getName

Using AI Code Generation

copy

Full Screen

1String name = driver.getName();2System.out.println(name);3String platform = driver.getPlatform();4System.out.println(platform);5String browserVersion = driver.getBrowserVersion();6System.out.println(browserVersion);7String deviceName = driver.getDeviceName();8System.out.println(deviceName);9String deviceVersion = driver.getDeviceVersion();10System.out.println(deviceVersion);11String deviceOrientation = driver.getDeviceOrientation();12System.out.println(deviceOrientation);13String devicePlatform = driver.getDevicePlatform();14System.out.println(devicePlatform);15String deviceUDID = driver.getDeviceUDID();16System.out.println(deviceUDID);17String deviceApp = driver.getDeviceApp();18System.out.println(deviceApp);19String deviceAppPackage = driver.getDeviceAppPackage();20System.out.println(deviceAppPackage);21String deviceAppActivity = driver.getDeviceAppActivity();22System.out.println(deviceAppActivity);23String deviceAppWaitActivity = driver.getDeviceAppWaitActivity();24System.out.println(deviceAppWaitActivity);25String deviceAppWaitPackage = driver.getDeviceAppWaitPackage();26System.out.println(deviceAppWaitPackage);

Full Screen

Full Screen

getName

Using AI Code Generation

copy

Full Screen

1String name = driver.getName();2String platformName = driver.getPlatformName();3String platformVersion = driver.getPlatformVersion();4Platform platform = driver.getPlatform();5String browserName = driver.getBrowserName();6String browserVersion = driver.getBrowserVersion();7Browser browser = driver.getBrowser();8MobileDevice mobileDevice = driver.getMobileDevice();9MobileOs mobileOs = driver.getMobileOs();10String mobileOsVersion = driver.getMobileOsVersion();11String mobileDeviceName = driver.getMobileDeviceName();12MobileDeviceOrientation mobileDeviceOrientation = driver.getMobileDeviceOrientation();13Dimension mobileDeviceScreenSize = driver.getMobileDeviceScreenSize();14Dimension mobileDeviceScreenSize = driver.getMobileDeviceScreenSize();15Dimension mobileDeviceScreenSize = driver.getMobileDeviceScreenSize();

Full Screen

Full Screen

getName

Using AI Code Generation

copy

Full Screen

1CarinaDriver driver = new CarinaDriver();2String name = driver.getName();3CarinaDriver driver = new CarinaDriver();4driver.getScreen();5CarinaDriver driver = new CarinaDriver();6driver.getScreenshotAs(OutputType.FILE);7CarinaDriver driver = new CarinaDriver();8driver.getScreenshotAs(OutputType.BYTES);9CarinaDriver driver = new CarinaDriver();10driver.getScreenshotAs(OutputType.BASE64);11CarinaDriver driver = new CarinaDriver();12driver.getScreenshotAs(OutputType.WRAPPED_DRIVER);13CarinaDriver driver = new CarinaDriver();14driver.getScreenshotAs(OutputType.RAW);15CarinaDriver driver = new CarinaDriver();16driver.getScreenshotAs(OutputType.WEBELEMENT);17CarinaDriver driver = new CarinaDriver();18driver.getScreenshotAs(OutputType.TEMP_FILE);19CarinaDriver driver = new CarinaDriver();20driver.getScreenshotAs(OutputType.FILE);21CarinaDriver driver = new CarinaDriver();22driver.getScreenshotAs(OutputType.BYTES);23CarinaDriver driver = new CarinaDriver();24driver.getScreenshotAs(OutputType.BASE64);

Full Screen

Full Screen

getName

Using AI Code Generation

copy

Full Screen

1import com.qaprosoft.carina.core.foundation.webdriver.DriverHelper;2import com.qaprosoft.carina.core.foundation.webdriver.DriverPool;3import com.qaprosoft.carina.core.foundation.webdriver.core.capability.impl.desktop.ChromeCapability;4import com.qaprosoft.carina.core.foundation.webdriver.core.capability.impl.desktop.FirefoxCapability;5import com.qaprosoft.carina.core.foundation.webdriver.core.capability.impl.mobile.android.AndroidCapability;6import com.qaprosoft.carina.core.foundation.webdriver.core.capability.impl.mobile.ios.IOSCapability;7import com.qaprosoft.carina.core.foundation.webdriver.core.capability.impl.mobile.ios.IOSIPhoneCapability;8import com.qaprosoft.carina.core.foundation.webdriver.core.capability.impl.mobile.ios.IOSIPadCapability;9import com.qaprosoft.carina.core.foundation.webdriver.core.capability.impl.mobile.ios.IOSIPhoneXCapability;10import com.qaprosoft.carina.core.foundation.webdriver.core.capability.impl.mobile.ios.IOSIPhoneXRCapability;11import com.qaprosoft.carina.core.foundation.webdriver.core.capability.impl.mobile.ios.IOSIPhoneXSMAXCapability;12import com.qaprosoft.carina.core.foundation.webdriver.core.capability.impl.mobile.ios.IOSIPhoneXSRCapability;13import com.qaprosoft.carina.core.foundation.webdriver.core.capability.impl.mobile.ios.IOSIPhoneXRMaxCapability;14import com.qaprosoft.carina.core.foundation.webdriver.core.capability.impl.mobile.ios.IOSIPhoneXSMAXCapability;15import com.qaprosoft.carina.core.foundation.webdriver.core.capability.impl.mobile.ios.IOSIPadProCapability;16import com.qaprosoft.carina.core.foundation.webdriver.core.capability.impl.mobile.ios.IOSIPadPro2Capability;17import com.qaprosoft.carina.core.foundation.webdriver.core.capability.impl.mobile.ios.IOSIPadPro3Capability;18import com.qaprosoft.carina.core.foundation.webdriver.core.capability.impl.mobile.ios.IOSIPadPro4Capability;19import com.qaprosoft.carina.core.foundation.webdriver.core.capability.impl.mobile.ios.IOSIPadPro11Capability;20import com.qaprosoft.carina.core.foundation.webdriver.core.capability.impl.mobile.ios.IOSIPadPro11_2Capability;21import com.qaprosoft.carina.core.foundation.webdriver.core.capability.impl.mobile.ios.IOSIPadPro12_9Capability;22import com.qaprosoft.carina

Full Screen

Full Screen

getName

Using AI Code Generation

copy

Full Screen

1String name = driver.getName();2System.out.println(name);3WebDriver driver = driver.getDriver();4System.out.println(driver);5String driverName = driver.getDriverName();6System.out.println(driverName);7DriverType driverType = driver.getDriverType();8System.out.println(driverType);9PlatformType platformType = driver.getPlatformType();10System.out.println(platformType);11String deviceName = driver.getDeviceName();12System.out.println(deviceName);13String deviceVersion = driver.getDeviceVersion();14System.out.println(deviceVersion);15String platformVersion = driver.getPlatformVersion();16System.out.println(platformVersion);17String platformName = driver.getPlatformName();18System.out.println(platformName);19DriverConfig driverConfig = driver.getDriverConfig();20System.out.println(driverConfig);21DriverPool driverPool = driver.getDriverPool();22System.out.println(driverPool);23WebDriver webDriver = driver.getWebDriver();24System.out.println(webDriver);25WebDriver webDriver = driver.getWebDriver();26System.out.println(webDriver);27WebDriverWait webDriverWait = driver.getWebDriverWait();

Full Screen

Full Screen

getName

Using AI Code Generation

copy

Full Screen

1import com.qaprosoft.carina.core.foundation.webdriver.CarinaDriver;2import org.openqa.selenium.WebDriver;3import org.openqa.selenium.support.ui.WebDriverWait;4import org.testng.Assert;5import org.testng.annotations.Test;6public class Test1 {7 public void test1() {8 WebDriver driver = new CarinaDriver("chrome");9 WebDriverWait wait = new WebDriverWait(driver, 20);10 Assert.assertEquals(driver.getTitle(), "Google");11 }12}13import org.openqa.selenium.remote.RemoteWebDriver;14import org.openqa.selenium.support.ui.WebDriverWait;15import org.testng.Assert;16import org.testng.annotations.Test;17public class Test2 {18 public void test2() {19 WebDriverWait wait = new WebDriverWait(driver, 20);20 Assert.assertEquals(driver.getTitle(), "Google");21 }22}23import org.openqa.selenium.chrome.ChromeDriver;24import org.openqa.selenium.support.ui.WebDriverWait;25import org.testng.Assert;26import org.testng.annotations.Test;27public class Test3 {28 public void test3() {29 ChromeDriver driver = new ChromeDriver();30 WebDriverWait wait = new WebDriverWait(driver, 20);31 Assert.assertEquals(driver.getTitle(), "Google");32 }33}34import org.openqa.selenium.firefox.FirefoxDriver;35import org.openqa.selenium.support.ui.WebDriverWait;36import org.testng.Assert;37import org.testng.annotations.Test;38public class Test4 {39 public void test4() {40 FirefoxDriver driver = new FirefoxDriver();41 WebDriverWait wait = new WebDriverWait(driver, 20);42 Assert.assertEquals(driver.getTitle(), "Google");43 }44}45import org.openqa.selenium.ie.InternetExplorerDriver;46import org.openqa.selenium.support.ui.WebDriverWait;47import org.testng.Assert;48import org.testng.annotations.Test;

Full Screen

Full Screen

getName

Using AI Code Generation

copy

Full Screen

1String driverName = driver.getName();2System.out.println("driverName: " + driverName);3String platform = driver.getPlatform();4System.out.println("platform: " + platform);5String deviceName = driver.getDeviceName();6System.out.println("deviceName: " + deviceName);7String deviceVersion = driver.getDeviceVersion();8System.out.println("deviceVersion: " + deviceVersion);9String udid = driver.getUdid();10System.out.println("udid: " + udid);11String browserName = driver.getBrowserName();12System.out.println("browserName: " + browserName);13String browserVersion = driver.getBrowserVersion();14System.out.println("browserVersion: " + browserVersion);15String mobilePlatform = driver.getMobilePlatform();16System.out.println("mobilePlatform: " + mobilePlatform);17String mobilePlatformVersion = driver.getMobilePlatformVersion();18System.out.println("mobilePlatformVersion: " + mobilePlatformVersion);19String mobileDeviceName = driver.getMobileDeviceName();20System.out.println("mobileDeviceName: " + mobileDeviceName);21String mobileDeviceVersion = driver.getMobileDeviceVersion();22System.out.println("mobileDeviceVersion: " + mobileDeviceVersion);

Full Screen

Full Screen

getName

Using AI Code Generation

copy

Full Screen

1import com.qaprosoft.carina.core.foundation.webdriver.CarinaDriver;2import org.openqa.selenium.WebDriver;3import org.openqa.selenium.remote.RemoteWebDriver;4public class 1 {5public static void main(String[] args) {6CarinaDriver driver = new CarinaDriver();7String name = driver.getName();8System.out.println("Browser name is: " + name);9}10}

Full Screen

Full Screen

getName

Using AI Code Generation

copy

Full Screen

1String name = getName();2System.out.println("The name of the driver is " + name);3String platform = getPlatform();4System.out.println("The platform of the driver is " + platform);5String deviceName = getDeviceName();6System.out.println("The device name of the driver is " + deviceName);7String deviceVersion = getDeviceVersion();8System.out.println("The device version of the driver is " + deviceVersion);9String deviceOrientation = getDeviceOrientation();10System.out.println("The device orientation of the driver is " + deviceOrientation);11String deviceType = getDeviceType();12System.out.println("The device type of the driver is " + deviceType);13String deviceModel = getDeviceModel();14System.out.println("The device model of the driver is " + deviceModel);15String deviceManufacturer = getDeviceManufacturer();16System.out.println("The device manufacturer of the driver is " + deviceManufacturer);17String deviceBrand = getDeviceBrand();18System.out.println("The device brand of the driver is " + deviceBrand);19String deviceSerial = getDeviceSerial();20System.out.println("The device serial of the driver is " + deviceSerial);21String deviceUDID = getDeviceUDID();22System.out.println("The device UDID of the driver is " + deviceUDID);

Full Screen

Full Screen

getName

Using AI Code Generation

copy

Full Screen

1import com.qaprosoft.carina.core.foundation.webdriver.CarinaDriver;2import org.openqa.selenium.WebDriver;3import org.openqa.selenium.chrome.ChromeDriver;4import org.openqa.selenium.firefox.FirefoxDriver;5import org.openqa.selenium.remote.RemoteWebDriver;6import org.openqa.selenium.ie.InternetExplorerDriver;7import org.openqa.selenium.edge.EdgeDriver;8import org.openqa.selenium.safari.SafariDriver;9import org.openqa.selenium.opera.OperaDriver;10import io.appium.java_client.android.AndroidDriver;11import io.appium.java_client.ios.IOSDriver;12import org.openqa.selenium.remote.DesiredCapabilities;13import java.net.URL;14import java.net.MalformedURLException;15import java.util.concurrent.TimeUnit;16import org.openqa.selenium.By;17import org.openqa.selenium.WebElement;18import java.util.List;19import org.openqa.selenium.NoSuchElementException;20import org.openqa.selenium.support.ui.ExpectedConditions;21import org.openqa.selenium.support.ui.WebDriverWait;22import org.testng.Assert;23import org.testng.annotations.Test;24import org.testng.annotations.BeforeMethod;25import org.testng.annotations.AfterMethod;26import org.testng.annotations.BeforeClass;27import org.testng.annotations.AfterClass;28import org.testng.annotations.BeforeTest;29import org.testng.annotations.AfterTest;30import org.testng.annotations.BeforeSuite;31import org.testng.annotations.AfterSuite;

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.

Run Carina automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful