package Utility; public interface I1 { String baseurl = “https://in.indeed.com/?r=us”; } package day6; import org.openqa.selenium.chrome.ChromeDriver; import Utility.I1; public class OpenURL2 implements I1 { public static void main(String[] args) { OpenURL2 obj = new OpenURL2(); obj.OpenAnyUrl(); } void OpenAnyUrl() { ChromeDriver driver = new ChromeDriver(); driver.get(baseurl); driver.close(); […]
package Utility; public interface I1 { String baseurl = “https://in.indeed.com/?r=us”; } package day5; import org.openqa.selenium.chrome.ChromeDriver; import Utility.I1; public class day5 implements I1 { public static void main(String[] args) { ChromeDriver driver = new ChromeDriver(); driver.get(baseurl); driver.close(); } }
packageday4; import org.openqa.selenium.WebDriver; import org.openqa.selenium.ie.InternetExplorerDriver; public class open_url { public static void main(String[] args) { WebDriver driver; driver = new InternetExplorerDriver(); driver.get(“https://www.facebook.com/”); driver.close(); } }
package day3; import org.openqa.selenium.WebDriver; import org.openqa.selenium.edge.EdgeDriver; public class Open_Edge { public static void main(String[] args) { WebDriver driver; driver = new EdgeDriver(); driver.get(“https://www.facebook.com/”); driver.close(); } }
package day2; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; public class open_url { public static void main(String[] args) { WebDriver driver; // create the chrome driver driver = new ChromeDriver(); // url mention driver.get(“https://www.facebook.com/”); driver.close(); } }
package day1; import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox.FirefoxDriver; public class OpenURL { public static void main(String[] args) { WebDriver driver; // create the firefox driver driver = new FirefoxDriver(); // url mention driver.get(“https://www.facebook.com/”); driver.close(); } }