fix bug because sometimes capabilities method is private

fix bug when running selenium webdriver on win7 ruby 1.9.3, there is a runtime issue and reported as capabilities is a private method