Hi Gaurav
2.There is a (3,3) table. "Capgemini is stored in 3,2 cell. I want to
retrieve the location of the table where "capgemini" is written.
My understanding you want to get the row and cell location of webtable
for text "capgemini" .
You can use GetRowWithCellText() Function of webtable to get the row number
> of web table at which text "capgemini" is stored.
>
and then use ColmunCount function of web table to get the total number
of column for that particular row in the webtable.
and use getcelltext function to search the desired content i.e.
"capgemini".
Use for loop to search the desired content.
3. Write a function to retrive "india" from the "country" dropdown button.
>
Use getroproperty
strDropDownValues=Browser().Page().Weblist().GetRoProperty("innertext")
and instr function as below
strTemp= instr(1,strDropDownValues,"india",vbtextcompare)
Regards
Anjum
On Sun, Jan 13, 2013 at 11:23 AM, gaurav sharma <[email protected]> wrote:
> Hi Guys,
>
> Please let me know the ans to the below question:-
>
> 1.Suppose on click of first page the second page opens but a submit button
> is not present on web page.Which recovery scenario trigger,recovery and
> post recovery options u will use?
>
> 2.There is a (3,3) table. "Capgemini is stored in 3,2 cell. I want to
> retrieve the location of the table where "capgemini" is written.
>
My understanding you want to get the row and cell location of webtable
for text "capgemini" .
You can use GetRowWithCellText() Function of webtable to get the row of web
> table.
>
and then use ColmunCount fucntion of web table to get the total number
of column for that particular row in the webtable.
and use getcelltext function to search the desired content.Use for loop to
search the desired content.
> 3. Write a function to retrive "india" from the "country" dropdown button.
>
Use getroproperty
strDropDownValues=Browser().Page().Weblist().GetRoProperty("innertext")
and instr function as below
strTemp= instr(1,strDropDownValues,"india",vbtextcompare)
> --
> GAURAV SHARMA
> S/W ENGG.
> ACCENTURE
>
> --
> You received this message because you are subscribed to the Google
> "QTP - HP Quick Test Professional - Automated Software Testing"
> group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/MercuryQTP?hl=en
>
--
Regards
Anjum
--
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en