Accessing a table within a table
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Accessing a table within a table
I have a namemap of
table.firstcell(1,1).table1.secondcell(1,1)
I want to use a project variable to access cells within the second table
When I set the project variable to to the rowindex of the cell table.firstcell(var1,1) it works.
If I set the second cell to table.firstcell(1,1).table1.secondcell(var2,1) it works.
If I try to do table.firstcell(var1,1).table1.secondcell(var2,1) it does not find the first cell.
I have tried table.refresh and table.refershmapppingInfo
How can I access using variables multiple rowindexs of a table within a table?
Solved! Go to Solution.
- Labels:
-
Desktop Testing
-
Web Testing
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Without knowing how you have defined your name mappings, it's a bit difficult to answer the question. An easier option, in my opinion, is to break the table down, where you can pass in the row and column values.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
table
cell
table
cell
table.cell.table2.cell2
where the cell has a row and column
changing the structure is not an option
Lori
CONFIDENTIALITY NOTICE: This Electronic Mail (e-mail) message may contain information and/or documentation that is confidential, privileged and exempt from disclosure under applicable law, and is intended only for the use of the individual or entity to which it is addressed. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is STRICTLY PROHIBITED. If you have received this communication in error, please notify the sender by reply email or telephone, and delete this message, including any attachments. Thank you for your compliance. 135790
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Here, I'm showing the name mappings, project variables and code, to highlight the appropriate cell in the example I had given earlier.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
thanks
Lori
CONFIDENTIALITY NOTICE: This Electronic Mail (e-mail) message may contain information and/or documentation that is confidential, privileged and exempt from disclosure under applicable law, and is intended only for the use of the individual or entity to which it is addressed. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is STRICTLY PROHIBITED. If you have received this communication in error, please notify the sender by reply email or telephone, and delete this message, including any attachments. Thank you for your compliance. 135790
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The example that I had provided shows you how to use project variables to select a cell in a table (within a table)
Again, without knowing how you have defined your name mappings, it will be difficult to answer your exact question
