While automation with Python Selenium, I came across a scenario where a textbox Total Amount gets populated based on some processing. The textbox takes some time to get populated. I use the below code to fetch the data, but the data I get is ""(empty value). If I use sleep I get the total amount correctly. Could someone let me know how to explicitly wait for the change of attribute value of the element.
driver.find_element_by_css_selector('input#TotalAmount').get_attribute("value")