I wanted to know, how I can use following waits in program at which situations?
driver.manage.timeouts.implicit_wait = 20
driver.manage.timeouts.script_timeout = 20
driver.manage.timeouts.page_load = 20
My program error is:
C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/selenium-webdriver-2.52.0/lib/selenium/webdriver/common/wait.rb:76:in `until': timed out after 10 seconds (Unable to locate element: {"method":"xpath","selector":".//*[@id='calendar']//*[contains(@class, 'fc-slot4')]/td/div"}) (Selenium::WebDriver::Error::TimeOutError)
from anonymouspatient.rb:61:in `<main>'
I can locate this element using IRB commands but can't find an element in selenium Webdriver using Ruby.