Nội dung text 2. WebDriver Methods.pdf
URL class: URL is a class present in java.net package We have to create Object of URL class to use navigate().to(URL url) ➢ new URL(“fullyqualifiedURL”); ➢ when we create Object it will through one checked Exception called as “MalformedURLException” 7. manage(): ➢ manage() provides mechanism to manage windows, timeouts and cookies ➢ we will be focusing on how to manage widows and timeouts ➢ return type is Options<> Options<> contains methods to manage windows and timeouts Options<> methods: a. window() : Window<> → manage windows b. timeouts() : Timeouts<> → manage timeouts As of Now we will learn Window<> methods