-1

I'm trying to write a tool that will click a specific co-ordinate on a webpage.

There's no elements for me to identify, it's all images (I'm assuming flash or something)

I found this page

Clicking at coordinates without identifying element

Which suggests using ActionChains, and looks to be exactly what I want to do. However the page seems to be for writing in python (Below is the code from that page, that I'm trying to replicate)

from selenium.webdriver.common.action_chains import ActionChains
actions = ActionChains(driver)
actions.move_by_offset(X coordinates, Y coordinates).click().perform()

And I can't figure out how to do the equivalent in VBA

Michael Liew
  • 273
  • 3
  • 12

1 Answers1

0

In VBA we do something like this :

driver.Actions.MoveByOffset(offset_x, offset_y).Perform

Read the official Selenium VBA wrapper - GitHub

This is the internal implementation :

Public Function MoveByOffset ( 
    offsetX As Integer,
    offsetY As Integer
) As Actions
cruisepandey
  • 28,520
  • 6
  • 20
  • 38