July 2019
Intermediate to advanced
536 pages
12h 57m
English
Initially, when building the class, there will be various private and public variables used that should be declared at the top of the class. This organizes the variables into one place in the file, but of course, this is a coding style guideline. Some of the common variables required to start are as follows:
public class CreateDriver { // local variables private static CreateDriver instance = null; private String browserHandle = null; private static final int IMPLICIT_TIMEOUT = 0; private ThreadLocal<WebDriver> webDriver = new ThreadLocal<WebDriver>(); private ThreadLocal<AppiumDriver<MobileElement>> mobileDriver = new ThreadLocal<AppiumDriver<MobileElement>>(); private ThreadLocal<String> sessionId = new ThreadLocal<String>(); ...Read now
Unlock full access