In google i'm going to search something like "rose", i usually get 10 results in the first page and in 2nd page 10 results and in 3rd 10 results so on upto 10th page 10 results. so if i want to open all the 10 pages 10 results i.e., 100 results and close..what is the DP for this? pls can anyone answer my Question..PLZZZZZ...
Answer Posted / sathya
Set odesc = Description.create
odesc("micclass").value="Browser"
Set Listofbrowser = Desktop.ChildObjects (odesc)
Counter = Listofbrowser.count
Msgbox Counter
For i=0 to Counter-1
val1 = Listofbrowser(i).Page("title:=Rose - Wikipedia, the free encyclopedia").WebElement("html id:=content").GetROProperty("innertext")
Msgbox val1
val2 =Split(val1, "rose" )
val2 = Ubound (val2)
Msgbox Val2
Listofbrowser(i).close
Next
Please correct me if am wrong.......Thanks
Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Hi Friendss..., can any body help me.. 1. Tell me your achievements(Technically)..? 2. Tell me your strengths(Technically) and weakness(Technical)..? 3. Why are you looking for change..?
How to test fly out menu in qtp?
There are 10 rows in the datatable. How can we fetch 2 rows and then skip 3rd row. After that, pick 4th & 5th row and skip 6th row. Please share code
what is the diff b/w assistive and mandatary rules of object repository in QTP???
What is the use of sendkeys and what are send keys
While spliting an action in QTP 10.0 getting an error : "This Line is a part of Script Block.You cannot split the action on this line." how to re-solve this and split the script into actions?
I AM TRYING PORT CODE FROM WINRUNNER TO QTP AND DON'T KNOW TO HOW TO CHECK THE ERRORS. IN WINRUNNER FUNCTION RETURNS EIGHER 0 OR -1 AGAINST WHICH RESULT CAN BE MADE PASS OR FAIL BUT IN QTP I DON'T SEE FUNCTIONS RETURNING ANY VALUE. APPRECIATE IF ANYONE COULD HELP ME CONVERTING FOLLWOING WINRUNNER CODE TO QTP. set_window("Customer Service"); rc = web_obj_get_text("Summary","#2","#4",ssn,""," ",1); if (rc != E_OK) { report_msg("[GetSubscriberSummary] Could Not get subscriber SSN; rc = "&rc); myRC = rc; } else { ssn = StripBlank(ssn); if (DEBUG) report_msg ("[GetSubscriberSummary] SSN: "&ssn); }
in my application,validation message has in japanise language.how to validate this message is appears properly or not
can test automation improve test effectiveness?
I hav installed QTP8.2, im working on webapplication, while running the script giving error msg like "QTPro.exe generated errors and will be closed by windows. You will restart the program. An error log is being created". Pls anybody what is the problem, what i have to do for this? Thanks...
What is Distributed testing? How does UFT support it?
How do you do batch testing in wr & is it possible to do in qtp, if so explain?
How did you resolve conflicts present in Object Repository?
Can we create user defined functions in qtp?
What is the new version of qtp which is recently released in the market?