I am trying to make a Selenium cookie clicker bot and I need to find the cookies produced per second by each "production" (grannies, clickers, etc.)
However, the tooltip only shows when the mouse is hovering over, and I am having trouble identifying the correct xpath to reference the value.
Thanks
I checked the website Link and I was able to get the xpath for the cookies per second text.
You can get is using xpath: //*[@id="tooltip"]/div/div[7]/b[1]
Code:
driver.FindElement(By.Xpath("//*[@id='tooltip']/div/div[7]/b[1]")).text;