Ask a Question

How to parameterize image for click action

SOLVED
Jayanthsunkari
Occasional Contributor

How to parameterize image for click action

Hello ,

 

I have bunch of image for a mobile applciation , and i need to perfrom click action on every image. I want to pass a fresh image with image name on click method and the method should be loop till the image found with the image name on Imageprository . can some one help me on fixing this issues, i am using VB script 

This is code i am using :

ImageRepository.BING_Set.Password.Touch

i want to pass differnet images in the place of password image with the image name,could someone help me on fixing this ?

1 ACCEPTED SOLUTION

Accepted Solutions
AlexKaras
Community Hero

Re: How to parameterize image for click action

Hi,

 

ImageRepository.BING_Set.Password.Touch

 

Do you mean something like this:

Dim strImageName : strImageName = "Password"

Set obj = Eval("ImageRepository.BING_Set." & strImageName)

Call obj.Touch()

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================

View solution in original post

1 REPLY 1
AlexKaras
Community Hero

Re: How to parameterize image for click action

Hi,

 

ImageRepository.BING_Set.Password.Touch

 

Do you mean something like this:

Dim strImageName : strImageName = "Password"

Set obj = Eval("ImageRepository.BING_Set." & strImageName)

Call obj.Touch()

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================

View solution in original post

cancel
Showing results for 
Search instead for 
Did you mean: