Usage of chrome protocol and XUL files

Ask general questions here.
rajiv_telang
Posts: 4
Joined: Thu Oct 15, 2009 7:21 am

Usage of chrome protocol and XUL files

Post by rajiv_telang » Thu Oct 15, 2009 7:29 am

Hi,

I need to automate a web based application that uses mozilla firefox browser and XUL as the webpage development language. Can Ranorex open a web page automatically using the chrome protocol? My requirement is to launch a xul page using chrome protocl and then start recording and then playing back the scripts.

e.g. Can I launch a firefox browser via Ranorex by typing a command similar to the following?
chrome://browser/content/browser.xul

Thanks in advance,
Rajiv

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Usage of chrome protocol and XUL files

Post by Support Team » Thu Oct 15, 2009 8:55 am

Hi rajv_telang!
Basically with Ranorex you have the same abilities as a normal pc user.

If you want to open chrome protocol based websites inside the recorder(without compiling) you can navigate like a normal user: e.g. start button -> run... -> firefox.exe -chrome chrome://browser/content/bookmarks/bookmarksPanel.xul

Otherwise in code using the .NET framework:
System.Diagnostics.Process.Start("firefox.exe", "-chrome chrome://browser/content/bookmarks/bookmarksPanel.xul");

Regards,
Christian
Ranorex Support Team
.
Image

rajiv_telang
Posts: 4
Joined: Thu Oct 15, 2009 7:21 am

Re: Usage of chrome protocol and XUL files

Post by rajiv_telang » Thu Oct 15, 2009 1:09 pm

Hi,

Thanks for your help. But in this case if I do record operations on web page contents of firefox, can I play that script back? Won't the firefox window in play back mode be out of context of ranorex script? (position/size of window?)

Please guide. Thanks,
Rajiv

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Usage of chrome protocol and XUL files

Post by Support Team » Thu Oct 15, 2009 1:18 pm

I don't really know, what you mean by "out of context". Ranorex does not rely on screen coordinates, so the position and size of the browser window do not matter for replaying.

Regards,
Alex
Ranorex Support Team
.
Image

rajiv_telang
Posts: 4
Joined: Thu Oct 15, 2009 7:21 am

Re: Usage of chrome protocol and XUL files

Post by rajiv_telang » Thu Oct 15, 2009 2:12 pm

Thanks a lot. I will try out the method and get back to you.