After clicking a button it redirect to another webpage associated with it. when i write code to select object in the new page i am not able select field in the new page
WebElement next23 = driver.findElement(By.xpath("//span[contains(text(),'Search Units')]")); next23.click(); // this redirect to new page then no code is working on the new page