Python Forum

Full Version: Extracting Text in a canvas using chain actions
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm Automating a site which has a canvas inside an Iframe. Have been able to navigate through the canvas and click on buttons using chain actions.
    add=WebDriverWait(driver, 20).until(ec.visibility_of_element_located((By.XPATH, '//*[@id="Desktop"]/body/canvas')))
    Hover = ActionChains(driver).move_to_element(add)
    Hover.move_by_offset(-5,60)
    Hover.click()
    Hover.perform()
    time.sleep(2)
Is there away I can extract text on a given off_set??
The only xpath available is referencing the entire canvas
Please supply enough information about your environment to help formulate an answer.
  • Which GUI are you using?
  • what is your OS?
  • Are you using Anaconda?
  • Any other useful information.
I'm using the basic python Idle with selenium on a windows 10
have used chrome driver
I can't determine with this small code snippet.
Need something that can be run