I am new to Ruby language. i want to work with chrome browser using selenium web driver. i am trying to open new tab in chrome browser. but i am unable to get.could you please check below code once.suggest me if anything wrong
require 'selenium-webdriver'
$driver = Selenium::WebDriver.for :chrome
$driver.navigate.to "http://www.google.com/"
$driver.manage.timeouts.implicit_wait = 30
body = $driver.find_element(:tag_name,'body')
body .send_keys(:control,'t')
$driver.navigate.to "http://www.ask.com/"
output: New tab in chrome is not opened,second url also opened in the same page which is already opened with first url.