Aim: Capture browser url : Automation API

Aim: Capture browser url

Class library usage, coding and language questions.

Aim: Capture browser url

Postby Praveen597 » Sat Dec 03, 2011 8: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
Praveen597
 
Posts: 24
Joined: Sat Aug 27, 2011 10:41 am

Re: Aim: Capture browser url

Postby Support Team » Mon Dec 05, 2011 1: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
User avatar
Support Team
Site Admin
 
Posts: 4837
Joined: Fri Jul 07, 2006 5:30 pm
Location: Graz, Austria


Return to Automation API

Who is online

Users browsing this forum: Google [Bot] and 0 guests