Below is the part where my code program meets a runtime ValueError.
while real_original_amount > 1:
future_amount=driver.find_element_by_xpath('//[@id="app"]/div[1]/div[2]/div[1]/div/div[3]/div[2]/div[3]/div/div/span/span')
future_amount_float = float(future_amount.text)
betting_count = ()
As I'm using selenium as part of the program, im taking webelements into a variable then convert the variable to a float number as it is on the website. Below is the error:
Traceback (most recent call last):
File "C:\Users\User\PycharmProjects\Selenium Projects\main.py", line 74, in <module>
future_amount_float = float(future_amount.text)
ValueError: could not convert string to float: ''
Tried several different methods to solve this ValueError but all didn't really worked out.