04-18-2011, 07:52 PM
Hi,
I am trying to retrieve all webelement objects existing in webtable of a webpage and I could do that using DP without any issues. The issue is in object identification when worked on same object which is recorded in OR instead of using DP.
The following works fine because that’s how QTP recorded the click action:
Browser(“ “).Page(“ “).Link(“ “).Click
But the given below code throws an error:
I have manually added WebTable just to check that whether QTP can recognize the object or not as Link is residing inside webtable but QTP neither recorded it that way in kewword view not its showing it under parent webtable in OR.
Please guide
Thanks,
I am trying to retrieve all webelement objects existing in webtable of a webpage and I could do that using DP without any issues. The issue is in object identification when worked on same object which is recorded in OR instead of using DP.
The following works fine because that’s how QTP recorded the click action:
Browser(“ “).Page(“ “).Link(“ “).Click
But the given below code throws an error:
Code:
Browser(“ “).Page(“ “).WebTable(“ “).Link(“ “).Click
I have manually added WebTable just to check that whether QTP can recognize the object or not as Link is residing inside webtable but QTP neither recorded it that way in kewword view not its showing it under parent webtable in OR.
Please guide
Thanks,