Hello, I am using selenium to find blogs on AWS Migration from amazon. I am getting the following error:
Exception in thread "main" org.openqa.selenium.NoSuchElementException: no such element: Unable to locate element: {"method":"partial link text","selector":"www.amazon.com/"}
Can someone help me with this?
Here is the code that I used.
System.setProperty("webdriver.chrome.driver","C:\\Users\\Sradha\\chromedriver.exe");
WebDriver driver = new ChromeDriver();
driver.get("https://www.google.com");
driver.findElement(By.name("q")).sendKeys("AWS Migration");
driver.findElement(By.partialLinkText("www.amazon.com/"));
Thread.sleep(4000);
Can someone help me with this?