Complete the code to open the URL "https://example.com" using Selenium WebDriver.
driver.[1]("https://example.com");
The get method of WebDriver opens the specified URL in the browser.
Complete the code to open the URL stored in the variable url using Selenium WebDriver.
driver.[1](url);driver.open(url) which is invalid.Use driver.get(url) to open the URL stored in the variable url.
Fix the error in the code to correctly open the URL "https://test.com".
driver.[1]("https://test.com");
driver.navigate.to() without proper chaining causes errors.The correct method to open a URL is get. Using navigate.to is incorrect syntax here.
Fill both blanks to open the URL stored in siteUrl using Selenium WebDriver.
driver.[1]([2]);
navigate instead of get without chaining.url when siteUrl is defined.Use driver.get(siteUrl) to open the URL stored in siteUrl.
Fill all three blanks to open the URL stored in link and then print "Page opened".
driver.[1]([2]); System.out.println([3]);
navigate instead of get without chaining.Use driver.get(link) to open the URL, then print the message with System.out.println("Page opened").