Forum Discussion

reydimaano's avatar
reydimaano
Contributor
12 years ago

New Tab focus is not consistent

I used this function  OpenNewTab(URL) from  Tab Browsing and it has a command " browser.BrowserWindow(0).Keys("^t");".  What I noticed is that after a new tab is created the focus is not consistent.  Sometimes the focus stays on the new tab created and sometimes the focus is on the previous tab.



Is there a way to make to focus consistent to always on the new tab created?


browser.BrowserWindow(0).Keys("^t");#sthash.kZumbmH9.dpuf


browser.BrowserWindow(0).Keys("^t");#sthash.kZumbmH9.dpuf


browser.BrowserWindow(0).Keys("^t");#sthash.kZumbmH9.dpuf

1 Reply


  • Hi Rey,


     


    Could you please clarify what do you need to open an empty tab for? Why don't you want to use the ToUrl or Navigate method to open the tested page? Refer to the "Navigating to Web Pages" article for details.