So, the way to click this button currently with the two options you have requested.
It doesn’t look like you can use the id since it changes each time the page is loaded.
But if you can catch the dynamically generated id it would like like so:
WebElement we5 = null;
we5 = driver.findElement(By.id("queryButton_ns_0S7SWJ42MS972TW2Z74G_1576_"));
we5.click();
or
As for the xpath it should be pretty simple:
WebElemet we5 = null;
we5 = driver.findElement(By.xpath("/html/body/div[4]/div/div[4]/div/div/div/table/tbody/tr/td[2]/form/div[2]/input"));
we5.click();
1
solved How to click FindNow button in selenium webdriver? [closed]