09-01-2015, 08:02 AM
Here is the simple example :
- Navigate to https://www.learnqtp.com/forums/Forum-QTP-Beginners page
- will find a table row with your name and there will be a checkbox at the end of the row (last column)
- Now just copy the below code and execute - (close any other browsers which are already in open and keep only this browser open - or you can handle the creation time if you know how to do it.)
- Then execute the code - the checkbox will be hightlighted
Hope this is helpful.
- Navigate to https://www.learnqtp.com/forums/Forum-QTP-Beginners page
- will find a table row with your name and there will be a checkbox at the end of the row (last column)
- Now just copy the below code and execute - (close any other browsers which are already in open and keep only this browser open - or you can handle the creation time if you know how to do it.)
- Then execute the code - the checkbox will be hightlighted
Code:
Browser("creationtime:=0").Page("micclass:=Page").WebElement("html tag:=tr","innertext:=.*Syahirah.*").WebCheckbox("index:=0").highlight
Browser("creationtime:=0").Page("micclass:=Page").WebElement("html tag:=tr","innertext:=.*Syahirah.*").WebCheckbox("index:=0"). Set "ON"
Browser("creationtime:=0").Page("micclass:=Page").WebElement("html tag:=tr","innertext:=.*Syahirah.*").WebCheckbox("index:=0").highlight
Hope this is helpful.
Thanks,
SUpputuri
SUpputuri