Python Forum
Extracting Text in a canvas using chain actions
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Extracting Text in a canvas using chain actions
#1
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
Reply
#2
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.
Reply
#3
I'm using the basic python Idle with selenium on a windows 10
have used chrome driver
Reply
#4
I can't determine with this small code snippet.
Need something that can be run
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How do I iterate over an array and perform actions using selenium chrome webdriver? master 0 2,389 Sep-14-2020, 05:28 AM
Last Post: master
  Help extracting text from element jpdallas 7 3,394 Apr-30-2020, 06:26 AM
Last Post: anbu23
  Web crawler extracting specific text from HTML lewdow 1 3,344 Jan-03-2020, 11:21 PM
Last Post: snippsat
  Looping actions in an iframe using Selenium on Python amyd 3 2,967 Mar-06-2019, 08:31 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020