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

asked May 22, 2017 at 10:11

1 Answer 1

0

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

string pressureToday = driver.FindElement(By.XPath(xpathExpression)).Text;
alecxe
11.4k11 gold badges52 silver badges107 bronze badges
answered May 22, 2017 at 10:21
3
  • I have added the code as suggested. But, I get the same error message. Commented May 23, 2017 at 0:37
  • I commented out lines 39 & 46 out & it worked.. Many Thanks. Commented May 23, 2017 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/… Commented May 23, 2017 at 2:32

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.