Professional Documents
Culture Documents
Advanced search Board index AdvancedQTP Forums Web Q&A Change font size Print view FAQ Login
13 posts Page 1 of 1
Recom m end Be the first of your friends to recommend this.
1/14/14
by Basanth Kumar April 9th, 2008, 1:33 pm Hello All, Here is a intersting scenario. I am trying to automate a piece of functionality which when spyed upon is identified as a webtable. However one of the columns of the webtable has data stored in as a weblist. I need to select the value from the weblist in sync with the value in the first column. This is best explained in the screenshot. For eg : I would need to select the value "Print" from the weblist against amoxcillin. I tried the simplest of the logic to retrieve the values from the webtable and then click on the respective column but how do i select it Please help me out. Warm Regards, B Attachments
Last edited by Anonymous on April 9th, 2008, 1:34 pm, edited 1 time in total. Basanth Kumar Active User
www.advancedqtp.com/old_forums/viewtopic.php?f=8&t=1121
2/14
1/14/14
'Please replace the values for all WebTables to match accurate descriptions. Also, replace "someValue" with the value that you want to select in the list. If you have correctly identified the WebTable, it should at least highlight itself. Best Regards, Anshoo Arora AdvancedQTP Forums Moderator http://relevantcodes.com - My Blog Anshoo Arora Advanced User
Posts: 886 Joined: November 23rd, 2007, 11:55 am Location: Atlanta, GA Website
www.advancedqtp.com/old_forums/viewtopic.php?f=8&t=1121
3/14
1/14/14
Top
1/14/14
You will notice that this method is for WebTables, thus, the mention of Row and Column. Code: Select all
S e to W e b L i s t=B r o w s e r ( " n a m e : = M e d i c a t i o n s " ) . P a g e ( " T i t l e : = M e d i c a t i o n s " ) . W e b L i s t ( " h t m l i d : = s e l e c t I n p u t " ) . C h i l d I t e m( " s e l e c t I n p u t " , 0 )
If we see the above statement, you can notice that no WebTable is defined. However, there is a description of the WebList. In this case, you can simply choose one of the list values:
www.advancedqtp.com/old_forums/viewtopic.php?f=8&t=1121 5/14
1/14/14
Best Regards, Anshoo Arora AdvancedQTP Forums Moderator http://relevantcodes.com - My Blog Anshoo Arora Advanced User
Posts: 886 Joined: November 23rd, 2007, 11:55 am Location: Atlanta, GA Website
Top
1/14/14
Can you solve my problem? I have a web table in which there are link objects in a column. Among those link there are very few link which has Image object adjacent to it. The link and the image object is withing the same cell. I need to click on that link only which has got the image adjacent to it. I tried with childItem but is not working. Please suggest me some alternatives for this Thanks Manoj Patra Active User
1. object .ChildItemCount(row, col, micclass) (This would return the number of objects with your specified class in a given WebTable cell)
2. This is a little more complex, and will require a bit of work from your side. But, you can retrieve the object.innerhtml/outerhtml from your WebTable and find the "tag" that you are looking for. If you find within the HTML code a tag mention of an Image, that's the cell where you would find the link that you need to click.
1/14/14
Last edited by Anonymous on August 20th, 2008, 12:00 pm, edited 1 time in total. Best Regards, Anshoo Arora AdvancedQTP Forums Moderator http://relevantcodes.com - My Blog Anshoo Arora Advanced User
Posts: 886 Joined: November 23rd, 2007, 11:55 am Location: Atlanta, GA Website
Top
1/14/14
1/14/14
User
Best Regards, Anshoo Arora AdvancedQTP Forums Moderator http://relevantcodes.com - My Blog Anshoo Arora
www.advancedqtp.com/old_forums/viewtopic.php?f=8&t=1121 10/14
1/14/14
Advanced User
Posts: 886 Joined: November 23rd, 2007, 11:55 am Location: Atlanta, GA Website
Top
1/14/14
by cherry krm August 22nd, 2008, 4:46 pm Hi Anshoo, Ok now this code doesnt work when I have one single column with more than 2 rows in webtable. It gives "selected" color code for unselected rows too. I am trying to tweak the code to verify,will submit code if successful. Thanks Cherry cherry krm User
1/14/14
Best Regards, Anshoo Arora AdvancedQTP Forums Moderator http://relevantcodes.com - My Blog Anshoo Arora Advanced User
Posts: 886 Joined: November 23rd, 2007, 11:55 am Location: Atlanta, GA Website
Top Display posts from previous: All posts Topic locked 13 posts Page 1 of 1 Return to Web Q&A
www.advancedqtp.com/old_forums/viewtopic.php?f=8&t=1121 13/14
Ascending
Go
1/14/14
Jump to:
Web Q&A
Go
Who is online
Users browsing this forum: Bing [Bot] and 1 guest Board index The team Delete all board cookies All times are UTC Powered by phpBB Forum Software phpBB Group
www.advancedqtp.com/old_forums/viewtopic.php?f=8&t=1121
14/14