Stack Exchange network consists of 177 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. It only takes a minute to sign up.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
I am have added the lines of code as suggested. I still get the same error message.
You need to do something with the text. For example, assign to some variable:
string pressureToday = driver.FindElement(By.XPath(xpathExpression)).Text;
Required, but never shown