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
Click on the link button inside TPaintPanel
Click on the link button inside TPaintPanel
- Attachments
-
- TPaintPanel.rxsnp
- (468.21 KiB) Downloaded 190 times
- Support Team
- Site Admin
- Posts: 12167
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Graz, Austria
Re: Click on the link button inside TPaintPanel
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:
Markus (T)
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)