In my test automation project, I am using ruby with capybara, cucumber and selenium. (I already have devkit installed and chrome is starting normally)
When looking for an element in the site to select it, I am using the method driver.findElement (By.xpath (.... etc")
, but when executing cucumber, it is indicating the following error:
undefined local variable or method `driver 'for # (NameError)
I already removed and reinstalled the selenium-webdriver
gem but it did not resolve.
Can someone help me in resolving why WebDriver
does not seem to be valid in this context?