Aim: Capture browser url

Class library usage, coding and language questions.
Praveen597
Posts: 27
Joined: Sat Aug 27, 2011 9:41 am

Aim: Capture browser url

Post by Praveen597 » Sat Dec 03, 2011 7:31 am

Hi Team,

I am using C # code.
I am trying to retrieve all the forms on the desktop and try to find the url of all forms (by using Self.Pageurl) so that if Pageurl exists then I'll consider that form as a browser and capture that url.
But I failed do it successfully .

Actually I tried to get browser count and do the same, but the browser count also includes the active form on the desktop.

Regards,
Praveen

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Aim: Capture browser url

Post by Support Team » Mon Dec 05, 2011 12:32 pm

Hi,

Why do you search for form elements if you want to get all browser objects? Ranorex identifies your browser tabs as DOM objects and not as form objects. Therefore please search for DOM and you should have no issue to retrieve the page URL from the DOM object.

Regards,
Peter
Ranorex Team