This is a migrated thread and some comments may be shown as answers.

Data Driven Event on Coded Step

1 Answer 58 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jonathan
Top achievements
Rank 1
Jonathan asked on 12 Dec 2012, 07:11 PM
There is a textbox on a VBscript popup that Telerik can't detect.  I have entered the element by finding it in the dom and was able to get telerik to recognize it, but on playback, it can't find it again.  So, I had given up and decided to go with the Desktop commands in a scripted step where I tab to the textbox and enter a string.  This works fine and is a good work around, but I would like to make the string data driven to the excel spreadsheet that is bound to the test.  I have tried clicking on the coded step and binding a variable, but nothing shows underneath the properties.  How do I reference a variable in the bound excel spreadsheet so that I can enter it in this textbox after I tabbed to it?

1 Answer, 1 is accepted

Sort by
0
Jonathan
Top achievements
Rank 1
answered on 12 Dec 2012, 07:32 PM
Nevermind.  I finally figured this out. Here it is in case someone else needs it:
C#:

 

 

object myData = Data["ExcelDataBoundVariable"];

 

ActiveBrowser.Manager.Desktop.KeyBoard.TypeText(mydata.ToString();

 

 

 

Tags
General Discussions
Asked by
Jonathan
Top achievements
Rank 1
Answers by
Jonathan
Top achievements
Rank 1
Share this question
or