Thanks a lot

Code: Select all
using System.Collections.Generic;
using System.Text;
using System.Text.RegularExpressions;
using System.Drawing;
using System.Threading;
using WinForms = System.Windows.Forms;
using Ranorex;
using Ranorex.Core;
using Ranorex.Core.Testing;
namespace TestWithPB
{
public partial class Recording1
{
/// <summary>
/// This method gets called right after the recording has been started.
/// It can be used to execute recording specific initialization code.
/// </summary>
private void Init()
{
// Your recording specific initialization code goes here.
}
public void UserCodeModule1()
{
var logOn = repo.LogOn.LogOn;
var cancel = repo.LogOn.Cancel;
if (logOn.Visible)
{
cancel.Click();
}
else {return;}
}
}
}