Hi ,
I am new to the Telerik, exploring it for desktop application automation for my company.
I am not able to run the recorded steps for WPF application.
When i try to run its showing below compiler error
'ERROR' > C:\Users\localuser\Documents\Test Studio Projects\TestProject_desktop\Pages.g.vb(46,0) : error BC30201: Expression expected.
below is the code generated
Imports Telerik.WebAii.Controls.Xaml.Wpf
Imports System
Imports System.Collections.Generic
Imports System.Text
Imports System.Linq
Imports ArtOfTest.Common.UnitTesting
Imports ArtOfTest.WebAii.Core
Imports ArtOfTest.WebAii.Controls.HtmlControls
Imports ArtOfTest.WebAii.Controls.HtmlControls.HtmlAsserts
Imports ArtOfTest.WebAii.Design
Imports ArtOfTest.WebAii.Design.Execution
Imports ArtOfTest.WebAii.ObjectModel
Imports ArtOfTest.WebAii.Silverlight
Imports ArtOfTest.WebAii.Silverlight.UI
Imports ArtOfTest.WebAii.Wpf
Namespace TestProject_desktop
Public Class WPFTest
Inherits BaseWebAiiTest
#Region "[ Dynamic Pages Reference ]"
Private _applications As Applications
'''<summary>
''' Gets the Applications object that has references
''' to all the elements, windows or regions
''' in this project.
'''</summary>
Public ReadOnly Property Applications() As Applications
Get
If (_applications Is Nothing) Then
_applications = New Applications(Manager.Current)
End If
Return _applications
End Get
End Property
#End Region
' Add your test methods here...
<CodedStep("LeftClick on ImgGenerateLoginImage")>
Public Sub WPFTest_CodedStep()
'LeftClick on ImgGenerateLoginImage
Applications.iRIScopeexe.iRIScope.ImgGenerateLoginImage.User.Click(ArtOfTest.WebAii.Core.MouseClickType.LeftClick, 34, 52, ArtOfTest.Common.OffsetReference.TopLeftCorner, ArtOfTest.Common.ActionPointUnitType.Percentage, CType(0,System.Windows.Forms.Keys))
End Sub
<CodedStep("Set windowstate of 'Debug Window' to 'Minimized'.")> _
Public Sub WPFTest_CodedStep1()
'Set windowstate of 'Debug Window' to 'Minimized'.
Manager.ActiveApplication.WaitForWindow("Debug Window").Window.Minimize
End Sub
<CodedStep("LeftClick on ImgGenerateLoginImage")> _
Public Sub WPFTest_CodedStep2()
'LeftClick on ImgGenerateLoginImage
Applications.iRIScopeexe.iRIScope.ImgGenerateLoginImage.User.Click(ArtOfTest.WebAii.Core.MouseClickType.LeftClick, 61, 45, ArtOfTest.Common.OffsetReference.TopLeftCorner, ArtOfTest.Common.ActionPointUnitType.Percentage, CType(0,System.Windows.Forms.Keys))
End Sub
<CodedStep("Click BtnReasontestButton")> _
Public Sub WPFTest_CodedStep3()
'Click BtnReasontestButton
Applications.iRIScopeexe.iRIScope.BtnReasontestButton.User.Click(ArtOfTest.WebAii.Core.MouseClickType.LeftClick, 154, 30, ArtOfTest.Common.OffsetReference.TopLeftCorner, ArtOfTest.Common.ActionPointUnitType.Pixel)
End Sub
End Class
End Namespace