Here's snippet of my code
while (!$driver.find_element(:xpath,element2).displayed?)
$driver.find_element(:xpath,element1).click()
end
for some reason element.displayed? throws this exception:
An element could not be located on the page using the given search parameters. (RuntimeError)
i expectI expected the code to return false when the element iswas not found but instead I got the exception. is
Is this working as intended or i'mam I using it wrongincorrectly?