Micro Focus QTP (UFT) Forums
Not able to identify webtable - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Not able to identify webtable (/Thread-Not-able-to-identify-webtable)



Not able to identify webtable - laxmiaparna - 10-28-2009

Saket,
Thanks for your help. I solved my issue by seeing your way.
But iam facing another problem that is, iam trying to pass a value in an webedit box. Now to pass a value in an edit box i have to check a webelement, for example if the webelement will display the records which is relevent to the given value in the webeditbox.

Here am trying to select the row from the webelement, but i am not able to select exact webelement from the existing rows. But for one value in the webeditbox is executing successfully.

When I parameterised the webeditbox but i could not parameterise the webelement,because when i select exact webelement from the existing rows, it is displaying the same record for every value where i given in webeditbox.
I checked the OR there webelement is placed by perticular selected value.
Code is

Code:
Browser("Combined website testing").Page("Combined website testing").Link("Login as intermediary").Click
Browser("Combined website testing").Dialog("Explorer User Prompt").WinEdit("Enter an intermediary").Set "101010"
Browser("Combined website testing").Dialog("Explorer User Prompt").WinButton("OK").Click
Browser("Combined website testing").Dialog("Windows Internet Explorer").WinButton("OK").Click
Browser("Combined website testing").Page("Page").Frame("menu").Link("Investment hub").Click
Browser("Client maintenance -selection").Page("Client maintenance -selection").WebElement("Quote").FireEvent("ONMOUSEOVER")
Browser("Client maintenance -selection").Page("Client maintenance -selection").WebElement("Create new quote").Click
Browser("Investment Hub").Page("Investment Hub").Frame("Frame").WebRadioGroup("ctl00$PageContent$Clients").Select "rbExistingClients"
Browser("Investment Hub").Page("Investment Hub").Frame("Frame_2").WebEdit("WebEdit").Set "ANTHONY"
Browser("Investment Hub").Page("Investment Hub").Frame("Frame_2").WebElement("ANTHONY").Click
Browser("Investment Hub").Page("Investment Hub").Frame("Frame_2").WebButton("Next >>").Click
Can you please suggest me what i need to do.

Regards
Laxmi


RE: Not able to identify webtable - Saket - 10-28-2009

as I mentioned in the previous thread by you.. use Descriptive programming in your code to identify the webElement.
try to modify your code with below statements

Code:
sText = DataTable("Name","dtLocalSheet") ' parameterized
Browser("Investment Hub").Page("Investment Hub").Frame("Frame_2").WebEdit("WebEdit").Set sText
Browser("Investment Hub").Page("Investment Hub").Frame("Frame_2").WebElement("innertext:=" & sText).Click
does this help?


RE: Not able to identify webtable - laxmiaparna - 10-28-2009

Thanks

Saket. It may help me. I gonna try with that script and let u know the status soon.

Regards
Laxmi