Hi Amol,

 

You might be able to click it using its position on the page. Look at the source and count how many buttons there are until you get to the one you are interested in. With that number use it with the index property.

 

e.g.

Browser(“name:=browser_name”).Button(“index:=5”).click()

 

Don’t know if this will work but give it a try.

 

Regards,

Lawrence.

 


From: amol kashetwar [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 12 July 2006 16:40
To: [email protected]
Subject: [Webtest] How to click button

 

Hi,

I want to click on button which is NOT having any name, label, Id field set. It is having href which is in session. Please could any body help me to write a code to click such type of button entity using canoo webtest.

 

Thanks,

 

Reply via email to