Setting hotspot during runtime of script

Is it possible to change the hotspot of a given image during runtime of a script.

Is it possible in Eggplant SE?

aka
put 5 in hotspotX 
put 7 in hotspoty
click image but use hotspotX hotspoty
put 1 in hotspotX 
put 4 in hotspoty
click image but use hotspotX hotspoty
etc

Comments

  • MSchrempp--

    Yes you absolutely can, using the hotspot property of an image:
    put 5 into hotspotX
    put 7 into hotspotY
    click (ImageName: "MenuButton", HotSpot: (hotspotX, hotspotY))
    put 1 in hotspotX
    put 4 in hotspoty 
    click (ImageName: "MenuButton", HotSpot: (hotspotX, hotspotY))
    
    Much more information is available on page 114 of the Eggplant Reference Manual in the help menu.

    Regards,
Sign In or Register to comment.