findSingle compile error
Posted: Wed Jul 01, 2009 10:14 pm
Okay, this one makes absolutely no sense. I'm using a very simple instance of findSingle to locate a save button and click it like this:
I get a compile error:
Cannot implicitly convert type 'Ranorex.Core.Element' to 'System.Windows.Forms.Button' (CS0029)
I've used this plenty of times in other solutions with no trouble. What gives?
Code: Select all
Button save = cmsForm.FindSingle(".//button[@accessiblename='Save']");
Cannot implicitly convert type 'Ranorex.Core.Element' to 'System.Windows.Forms.Button' (CS0029)
I've used this plenty of times in other solutions with no trouble. What gives?