Either its possible to get and show a value from front end in selenium Java. If so, then how I can do this
I am testing a website and I need to perform some action on the basis of Price. It is showing price in Remaining Budget. I want to check the remaining budget and then on the basis of it want to perform action.
You can see in pic about it. Kindly share your experience about this.
Yes, you can get values in form of String after that you can use them as you want.
like this -
String price = driver.findElement(By.xpath("your-xpth-of-selected-value")).getText();
Now this string value you can use as you need.