I'm able to retrieve value from a cell using the below code -
but looking for a solution to select the value from a dropdown present in one of the cells of webtable.
Go to Solution.
This screen tells me what is going wrong,
Cell is the ObjectType and is not a callable function. This is what you can do.
You can do like below
var propNames = ["ObjectType","RowIndex","ColumnIndex"];
var propValues = ["Cell","1","8"];
var cellObject = form.panel4.table.FindChild(propNames,propValues);
textNodeObj = cellObject.FindChild("textnode propnames","textnode propvalues");
Project.Variables.rowIndex = 1;
Project.Variables.columnIndex = 8;
Let me know if this works for you!
LinkedIn | CG-VAK Software | Bitbucket | firstname.lastname@example.org
View solution in original post
Easiest way to find out is to record a test and walk through the steps that you want.
This is how it looks when i record it
Were you able to spy the dropdown object, if yes then
More details on the object and screenshot would be better to help
Thanks for your suggestion. This dropdown gets identified as a textnode and it would be present in the last column of all the rows. In the name mapping it is under the below heirarchy
form->panel->table->cell2->texnode. Property of cell has row and index
for now i'm able to select some value from the dropdown with the below code
But Cell2 is not the ideal way to do, since it has a particular row and column mapped to it.
tried with below code - but it is not working. I can pass the row and column as variables in the code
First thing first, do exists before any action on the object.
If cell not exists then we can't do anything,
Yes i did try this, and got this error message. But when i do cell2 instead of cell(1,8) in the below code it does work fine.
Thanks a lot for giving a solution. Option 1 worked perfectly fine
Also is there a way to select a value from the dropdown rather than doing the keys. Would the findchild method work here