I'm getting the text as string and i need to compare it with a number, If its grater than that number then execute an if
statement and if not then else
.
I'm using following code :
string sato = driver.FindElement(By.CssSelector(".user_reward_points")).Text;
if (sato > 1200)
{
driver.FindElement(By.CssSelector("#free_points_rewards > .effect2:nth-
child(2) .large-3:nth-child(3) > .reward_link_redeem_button_style")).Click();
}