Click on the link button inside TPaintPanel

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
Rakesh123
Posts: 63
Joined: Thu Oct 28, 2010 2:18 pm

Click on the link button inside TPaintPanel

Post by Rakesh123 » Mon Jan 28, 2013 10:14 am

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
Attachments
TPaintPanel.rxsnp
(468.21 KiB) Downloaded 178 times

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Click on the link button inside TPaintPanel

Post by Support Team » Tue Jan 29, 2013 4:57 pm

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)
.
Image