In this post we will discuss RSpec WebDriver XPath. We will look at how we can use xpath to help us find elements on a web page when writing WebDriver tests through RSpec. Unlike Locators (as discussed in the previous tutorial) xpath can break very easily and as a result someone would encourage that you dont write xpath tests. However we will slightly look into this issue as well in this video tutorial.
RSpec WebDriver XPath Video Tutorial
We will discuss how to minimize issues with xpath and how it can provide a different approach as opposed to using locators to help us locate elements on a web page.