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

Unable to locate record in List box using Local Data Source

3 Answers 118 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Akbar
Top achievements
Rank 1
Akbar asked on 22 Mar 2011, 05:56 AM

HI,

I am able to highlight a record in ListBox using following code step in WebUI:

pages.BORWL08D63186Wmservice.SilverlightApp.LstProcessOrdersListbox.Find.ByText("PO_CAM_02").User.Click()

But if try to put the value “PO_CAM_02” in Local Data Source and then try to highlight the record in ListBox, by using following code step in WebUI:

pages.BORWL08D63186Wmservice.SilverlightApp.LstProcessOrdersListbox.Find.ByText(Data["Col1"].ToString()).User.Click()

I get following compiling error:

C:\Documents and Settings\....\DS2.aii.vb: Line 70: (BC30311) Value of type 'ArtOfTest.WebAii.Design.BaseWebAiiTest.TestData' cannot be converted to 'String'.
C:\Documents and Settings\....\DS2.aii.vb: Line 70: (BC30203) Identifier expected.

We are currently evaluating WEB UI tool by using trial version, your help in this regards will be much appreciated.

Thanks

Akbar

3 Answers, 1 is accepted

Sort by
0
Akbar
Top achievements
Rank 1
answered on 22 Mar 2011, 11:33 PM
Hi,

I really need urgent assistant with my below query. Any help will be much appreciated.
The response which i might receive will assist my company in evaluating Web UI tool.

Regards

Akbar
0
Akbar
Top achievements
Rank 1
answered on 23 Mar 2011, 01:23 AM

Hi All,

I found the solution, below code, does not give you compilation error:

pages.BORWL08D63186Wmservice.SilverlightApp.LstProcessOrdersListbox.Find.ByText(Data("Col1").ToString()).User.Click()

0
Stoich
Telerik team
answered on 24 Mar 2011, 02:46 PM
Hello Akbar,
  I'm glad to hear you've resolved this.

Please let me know if you require any further assistance! Also check out your KBs, you'll find some good info there:
http://www.telerik.com/automated-testing-tools/support/kb.aspx?Category=Troubleshooting

Hope to hear from you soon!

Kind regards,
Stoich
the Telerik team
Tags
General Discussions
Asked by
Akbar
Top achievements
Rank 1
Answers by
Akbar
Top achievements
Rank 1
Stoich
Telerik team
Share this question
or