Posted By

noah on 12/10/10


error google ruby bug chrome indexof selenium problem selenium-client

Versions (?)

Selenium and Ruby: How to fix "Cannot call method 'indexOf' of undefined" when opening a page in Google Chrome

 / Published in: Ruby


Instead of just saying @selenium.start, use the following incantation to start up your Chrome instance.

  1. @selenium.start_new_browser_session('commandLineFlags' => '--disable-web-security')

Report this snippet  

You need to login to post a comment.