Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

153
Views
Is there a way to click separate elements on a canvas (e.g. in a browser game) using selenium?

I am trying to create a bot for https://5kings.ru/ which has to move on arena (it is displayed by a canvas).
enter image description here

Here is its code:

<canvas id="mapCanvas" width="252" height="138.5" onclick="MapClick(arguments[0])" onmousemove="mover(arguments[0]);" style="cursor: pointer;"> == $0

I want to click on the separate fields but I couldn't find a right tool. My code does basic click by Actions:

canvas = driver.find_element(By.ID, "mapCanvas")
actions.move_to_element(canvas).click().perform()

As I understand this is related to Javascript and Jquery, can these give a hint? Website's Jquery file: https://5kings.ru/jquery-2.1.3.js

about 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!