Question: Need to write 10 test cases using Intellij (selenium WebDriver and testng) with google chrome driver the test cases should be about amazon page package

Need to write 10 test cases using Intellij (selenium WebDriver and testng) with google chrome driver the test cases should be about amazon page package test; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.testng.annotations.Test; import java.time.Duration; import java.util.concurrent.TimeUnit; public class FirstTest { WebDriver driver; @Test public void test0() { System.setProperty("webdriver.chrome.driver", "C:\\SeleniumDrivers\\chromedriver_win32\\chromedriver.exe"); driver = new ChromeDriver(); driver.get("https://www.amazon.com/"); driver.findElement(By.id("twotabsearchtextbox")).sendKeys("laptop"); driver.findElement(By.id("nav-search-submit-button")).click(); } } 

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!