I\'m building a Selenium/Ruby web bot that clicks on elements. The problem is, sometimes there isn\'t enough time for the page to load before the bot decides it can\'t find
You are using wait as WebDriver function, but it isn't. Try this
wait
WebDriver
element = wait.until { driver.find_element(:class => "gb_P") } element.click