Technology specific object identification, supported applications, web technologies, and 3rd party controls.
-
SurajJaldu
- Posts: 29
- Joined: Sat Feb 25, 2012 12:10 am
Post
by SurajJaldu » Mon Apr 02, 2012 7:05 pm
Hi,
I am trying to find a link in AUT and click it.
The following code is working for me.
Code: Select all
Ranorex.WebDocument mppApp = repoMPP.HomePage.Self;
Ranorex.Unknown mppElement = mppApp.FindSingle<Ranorex.Unknown>(".//a[@id='CompanyManagementCheckButton']");
mppElement.Click();
But, the following doesn't. Can you give me an insight, why?
Code: Select all
Ranorex.WebDocument mppApp = repoMPP.HomePage.Self;
Ranorex.Link mppElement = mppApp.FindSingle<Ranorex.Link>(".//a[@id='CompanyManagementCheckButton']");
mppElement.Click();
I get the error "The element does not support the required capability 'link'. "
I prefer to know the type of object I am finding.
Thanks,
Suraj
-
Support Team
- Site Admin

- Posts: 12167
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Graz, Austria
Post
by Support Team » Tue Apr 03, 2012 8:26 am
Hi,
as you are going to automate a ATag pleas try to use the following code instead:
Ranorex.ATag mppElement = mppApp.FindSingle<Ranorex.ATag>(".//a[@id='CompanyManagementCheckButton']");
Regards,
Tobias
Ranorex Team
.

-
SurajJaldu
- Posts: 29
- Joined: Sat Feb 25, 2012 12:10 am
Post
by SurajJaldu » Tue Apr 03, 2012 8:47 pm
Thanks. ATag is working. (Just curios) Where do we use 'Ranorex.Link'?
-
Support Team
- Site Admin

- Posts: 12167
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Graz, Austria
Post
by Support Team » Wed Apr 04, 2012 4:18 pm
Hi,
SurajJaldu wrote:Thanks. ATag is working. (Just curios) Where do we use 'Ranorex.Link'?
Ranorex.Link is a Role. Ranorex.LinkTag is the linktag inside a HTML header.
Regards,
Peter
Ranorex Team
.
