Grid with same named buttons - how to click individually?

Hi all,

Hope someone can help me with this problem.

I have a grid with several buttons (a kind of dimension picker) which are named the same. Now say I want to press the Add button on 3e - see attachment - eggplant seems to find the first add button and click it. I've already tried setting the hot spot but it doesn't seem to work.
Is there any other way to count through the buttons? My selection is always based on both the horizontal and vertical options.

Thanks in advance

Comments

  • If you can find the location for the vertical (a, b, c, d, e, f, g, h) and horizontal (1, 2, 3, 4) gradation you can use that to calculate the position of the desired button.

    something like the following
    set Xposition = item 1 of imagelocation("three")
    set Yposition = item 2 of imageLocation("e")
    
    set buttonLocation = (Xposition, Yposition)
    
    click buttonLocation
    

    I hope this helps
  • GhostGhost Member
    Thanks a lot! It worked :)
Sign In or Register to comment.