Joel Pearson wrote in post #1120750:
> Window vs Tab is a browser setting, not accessible by JavaScript as far
> as I know. You need to change the way your browser handles new windows.
>
> In Firefox: Tools -> Options -> Tabs -> Open new windows in a new tab
> instead

All the stuffs I googled said if the above mentioned setting(as you have 
shown) is checked,then `window.open(url,'_blank')` will open the url in 
a new tab.So I did the below :-

profile = Selenium::WebDriver::Firefox::Profile.new
profile['browser.tabs.opentabfor.windowopen'] = true

But not worked. :(

-- 
Posted via http://www.ruby-forum.com/.