Hi,The question is write a script for the following
scenario.
scenario:in a job portal i entered QTP 3yrs testing then
click search button.then it displays results like
Test lead bangalore (here is a checkbox).
Test lead hyderabad check box
so on...
question is if test lead position in bangalore then
checkbox shld be enabled automatically..
Answers were Sorted based on User's Feedback
Answer / balaji
Better Capture the webtable rowcount and columncount like
row=Browser("<name>").Page("<Page>").Webtable
("<tablename>").rowcount
column=Browser("<name>").Page("<Page>").Webtable
("<tablename>").columncount
For i=1 to row
For j=1 to column
val=Browser("<name>").Page("<Page>").Webtable
("<tablename>").getcelldata(i,j)
if instr(val,"Test Lead")>0 then
Browser("<name>").Page("<Page>").Webtable
("<tablename>").childitem("Webcheckbox",i,j).Select "On"
next
next
Reach me @9894207910 if u want more info.
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / suresh
vbCheckBox("name").set "ON"
is to select the specific CB.
Iam afraid, I could not understand what you are asking
for...
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / tvs ramakrishna chowdary
balaji is obsolutely correct...
| Is This Answer Correct ? | 1 Yes | 0 No |
write a script to validate the content in the web application. (do it by OR method) and (do it by Descriptive method by creating a description object..
Tel me what was the automation testing process you followed?
how to count spaces in a given string ex: "this is jagadeesh" in QTP with simple functional script
How can we encrypt the username using recording mode in login window? There is 2 encrypted types what are it
Whenever we use GETROPROPERTY function.
How to identify flash application when the qtp is not identifying the flash application objects.
i have asked earlier only one question how to test web application using QTp plz send me the answer quickly
If we put all properties in mandatory and assistive list of Normal Identification, Do we still need Smart?
how to re-install QTP 9.0 trial version.
HI. AnyBody can explain Automation Testing Framework...Generally wht do we Intiate before going to start Automation testing process... Anybody can explain.......Thanks in advacne...
There are 4 webpages in an application, in third page there is one cancel button i want to click that cancel button only, how can I click that cancel buttton ?
how to use the regular expression for the below code-- swf("application name").swftreeview ("Treename").select"Medication;Pharmacy:56" There is a tree view window of the folder's ie Medication- >Pharmacy(sub folder)with 56 as count of records...The records can be different or if no records present in the specific folder..then it show "Paharmacy:-no records".Whe i record at the first time .....and try to rerun the same script with different records count say "pharmacy:800"..qtp is not regnizing it...therefore i want to user regular expression..but donot now how to use it and where to use...i have tried.... swf("application name").swftreeview ("Treename").select"Medication;Pharmacy:\*"..but it s of no use..plz help..me