Data Driven Event on Coded Step

2 posts, 0 answers
  1. Jonathan
    Jonathan avatar
    23 posts
    Member since:
    Jan 2012

    Posted 12 Dec 2012 Link to this post

    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?

  2. Jonathan
    Jonathan avatar
    23 posts
    Member since:
    Jan 2012

    Posted 12 Dec 2012 Link to this post

    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();

     

     

     

Back to Top