Forgot to mention the webpage:
http://www.allcardetails.com/model-2012-2013/audi-a4-allroad-quattro-20-tdi-143pk-5-doors-stationwagon-6-speed-manual-26879.html
On Thursday, 24 October 2013 21:22:34 UTC+5:30, Vish wrote:
>
> Hi,
>
> My requirement is as below and to accomplished it, I have created code for
> the same. But though it does not working correctly and I am not able to
> find root cause for the same.
>
> Requirement:
> I have a page from which I have to get field name having value : true
> mark.
>
> My Code:
> Set vobj1Desc=Description.Create
> Set vobj1Child = Description.Create
> vobj1Desc("file name").value="yes.gif"
>
> set vobj1Child = Browser("Browser").Page("Product_Details_Page")
> .WebElement("Page_Frame").ChildObjects(vobj1Desc)
>
> Yes_Val = vobj1Child.Count
> final_val = Yes_Val-1
>
>
> Temp1 = ""
> Temp2 = ""
> Temp3 = ""
> Temp4 = ""
> Temp5 = ""
> For Temp = 0 To final_val Step 1
>
> set vobj1Child = Browser("Browser").Page("Product_Details_Page")
> .WebElement("Page_Frame").ChildObjects(vobj1Desc)
>
> yvalue = vobj1Child(Temp).GetROProperty("abs_y")
> height = vobj1Child(Temp).GetROProperty("height")
> y = vobj1Child(Temp).GetROProperty("y")
>
>
> Browser("Browser").Page("Product_Details_Page").WebElement(
> "TestingObj").SetTOProperty "abs_y", yvalue
> Browser("Browser").Page("Product_Details_Page").WebElement(
> "TestingObj").SetTOProperty "height", height
> Browser("Browser").Page("Product_Details_Page").WebElement(
> "TestingObj").SetTOProperty "y", y
>
>
> str2 = Browser("Browser").Page("Product_Details_Page").WebElement(
> "TestingObj").GetROProperty("innertext")
>
> *Explanation of code: *I counted fields having file name: yes.gif then
> get it's height, abs_y value and y value.
> Now, created one object(i.e testingobj) and set run time height, abs_y
> value and y value and then trying to get it's innertext(i.e str2)
>
> But by this logic, I am not getting correct innertext each time while
> running through the loop and Not able to identify the problem.
>
> Please Help.
>
--
--
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
---
You received this message because you are subscribed to the Google Groups "QTP
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.