0

I am automating desktop application Using winApp driver similer to selenium driver. In which I am trying to click a button which don't have name,class name or any unique tag to identify. So i want to click the button where next to next tag having name ICC Base.

Tag Example: "Custom" ,"button" ,"image","ICC Base" text

Where custom, button, image have no uniform value.

WebElement a= driver.findElementByName("ICC Base")

WebElement btn= a.findElement(By.Xpath("preceding-sibling::button")
Abhay Chaudhary
  • 1,763
  • 1
  • 8
  • 13

0 Answers0