0

I am have added the lines of code as suggested. I still get the same error message.Error - Only Assignment Call, Increment.... Can Be Used As A Statement

0

You need to do something with the text. For example, assign to some variable:

string pressureToday = driver.FindElement(By.XPath(xpathExpression)).Text;
| improve this answer | |
  • I have added the code as suggested. But, I get the same error message. – OA345 May 23 '17 at 0:37
  • I commented out lines 39 & 46 out & it worked.. Many Thanks. – OA345 May 23 '17 at 0:56
  • I have another error. My research (from google & stackoverflow) suggests that it is a formatting issue. Here it is, please: sqa.stackexchange.com/questions/27406/… – OA345 May 23 '17 at 2:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.