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
You do not have the required permissions to view the files attached to this post.
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
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)