New answers tagged

1

For of all thank everyone for your help! The answer was quite simple and I hope some of the senior members dont get mad. In order to access the elements on the second page all I that needed to be done is switch to the correct tab. ArrayList<String> tabs2 = new ArrayList<String>(driver.getWindowHandles()); driver.switchTo().window(tabs2....


2

It seems the second page is opening in a new tab, please switch the tab before interacting with the page: driver.findElement(By.xpath("/html/body/div[4]/div[2]/div[2]/div[2]/div[2]/div[2]/div[2]/div/div[4]/div[1]/div/div/div[2]/div[1]/span[1]/strong/span/div/ul/li[1]/span/a")).click(); ArrayList<String> tabs = new ArrayList<String>(driver....


0

Check your selenium and chrome version. I don't think the issue is related to locator. I tried it in my local and it's working fine. I used xpath //a[text()='VIDEO'] Here's the log. At the last part, you will notice that it locates the element and click it. pool-1-thread-1: Executing get parameters: {"url":"https://mmashare.fullfight.video/viewtopic.php?t=...


Top 50 recent answers are included