Selenium Webdriver / Ruby : assert times out -


i have line hitting drop down menu , asserting list option present. if list item not present output text " list item not present" instead, ends waiting ever , timing out entirely.

    assert{ displayed?(:xpath, "//li[text() = 'clinical review feedback type']") } 

thanks help.

i think maybe i've got it:

    begin         @driver.find_element(:xpath, "//*[text() = 'clinical review feedback type']").click       rescue => e         p e.message          puts "filter not found in list"     end 

if want print "list item not present", should apply exception handling in code. in way if element not present catch block print message in console


Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

order - Notification for user in user account opencart -