Setting focus to the correct Browser tab : General Questions

Setting focus to the correct Browser tab

Ask general questions here.

Setting focus to the correct Browser tab

Postby Aracknid » Fri Jul 22, 2011 10:36 pm

I've got a browser window stored as a Form object. It has multiple tabs with different web pages, each stored as a Web Document object (DOM).

I want to click something on one of the tabs, but another tab has focus and is the one being displayed on top.

How do I make the Web Document I want to work with the active one? I've tried EnsureVisible, Focus, etc... and it never comes to the front. Is there something like an Activate command for a DOM object to automatically bring it to the front? Do I need to write code to walk through the Form object and click the tab that I want?

Thanks,

Aracknid
User avatar
Aracknid
 
Posts: 126
Joined: Tue Aug 10, 2010 4:23 pm
Location: Toronto, Ontario, Canada

Re: Setting focus to the correct Browser tab

Postby Support Team » Mon Jul 25, 2011 1:27 pm

Aracknid wrote:I've got a browser window stored as a Form object. It has multiple tabs with different web pages, each stored as a Web Document object (DOM).

Please could you post us a Ranorex Snapshot of the entire form to check if it is possible to bring the tab to foreground?
How to create a Ranorex Snapshot
Thanks in advance.

Regards,
Peter
Ranorex Team
User avatar
Support Team
Site Admin
 
Posts: 4845
Joined: Fri Jul 07, 2006 5:30 pm
Location: Graz, Austria

Re: Setting focus to the correct Browser tab

Postby Aracknid » Thu Jul 28, 2011 3:46 pm

Sorry, I ended up changing the way my framework works and changed our browser default to not use tabs, so while this may still be an issue, it is not one for me anymore.

Aracknid
User avatar
Aracknid
 
Posts: 126
Joined: Tue Aug 10, 2010 4:23 pm
Location: Toronto, Ontario, Canada


Return to General Questions

Who is online

Users browsing this forum: No registered users and 0 guests

cron