when i call this method, debugger screen hang , doesn't generate any error or any action
static void CheckForWarningDialog()
{
Ranorex.Button button=null;
if (Host.Local.TryFindSingle("/form[@title='Windows explorer']/button[@text='OK']", 1000, out button))
button.Click();
}
popup window
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: popup window
Hello,
It looks like that your form is not availabe:
Regards,
Markus (T)
It looks like that your form is not availabe:
Could you identify this form with 'Ranorex Spy' correctly?omayer wrote:/form[@title='Windows explorer']
Regards,
Markus (T)
Re: popup window
same result after using correct path from xpy , please see attached rxsnap
static void CheckForWarningDialog()
{
Ranorex.Button button=null;
if (Host.Local.TryFindSingle("/form[@title='Windows Internet Explorer']/button[@text='OK'],5000, out button))
button.Click();
}
static void CheckForWarningDialog()
{
Ranorex.Button button=null;
if (Host.Local.TryFindSingle("/form[@title='Windows Internet Explorer']/button[@text='OK'],5000, out button))
button.Click();
}
You do not have the required permissions to view the files attached to this post.
Tipu
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: popup window
Hello,
It seems that you have missed a double quote (") at the end of your line:
Markus (T)
It seems that you have missed a double quote (") at the end of your line:
You could use the following lines of code:"/form[@title='Windows Internet Explorer']/button[@text='OK']
static void CheckForWarningDialog() { Ranorex.Button button=null; if (Host.Local.TryFindSingle("/form[@title='Windows Internet Explorer']/button[@text='OK']",5000, out button)) button.Click(); }Regards,
Markus (T)