Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 97807

Error initializing driver method - undefined local variable

$
0
0

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?


Viewing all articles
Browse latest Browse all 97807

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>