var vatDisplay = driver.FindElement(By.CssSelector("#tax-amount"));
Assert.AreEqual("£13.80", vatDisplay.Text);
I wanted to do this item in another way like rather than telling
Assert.AreEqual("£13.80", vatDisplay.Text);
I need to say if it is vatDisplay.Text > £0.00 and I do not know how to do that.
Can Anyone please tell me how to do that.
Thank you in advance
You could parse the string value into a decimal and then verify that the resulting value is a positive number: