Page 1 of 1

Click on the link button inside TPaintPanel

Posted: Mon Jan 28, 2013 10:14 am
by Rakesh123
Hi,

I am automating an application developed in Delphi.

I am facing a problem while creating a link under 'TPaintPanel' object in delphi.

By using the following code I am trying to click on the link.

IList<RawText> allTxts=obj.AllscriptsProfessionalEHR.TPaintPanel.FindChildren<RawText>();
foreach(RawText txt in allTxts)
{
if(txt.RawTextValue.Contains("Open"))
{
txt.Click();
}
}

I want to click 'Open' link but can't able to click
Pls find the attached snap shot.

Thanks,
Rakesh

Re: Click on the link button inside TPaintPanel

Posted: Tue Jan 29, 2013 4:57 pm
by Support Team
Hello,

Your code looks correct but it looks like that your elements are not identified correctly.
You could see that if you select 'Screenshot' on the element 'RawText 'Open'' e.g.

You could try to set the location of your mouse-clicks as shown below:
txt.Click(Location.LowerRight); // or 
txt.Click(new Location(0.70, 0.70));
Regards,
Markus (T)