The amount=driver. Find_element_by_id (" payment - text - price "). Get_attribute (' textContent)
Or amount=driver. Find_element_by_id (" payment - text - price "). The text can print out the amount
Logging. The info (amount)
There is no input in the log
CodePudding user response:
Driver. Find_element_xpath (".//span [@ class='text - danger ng - binding'] "). The textIt should be ok, I doubt that is you no accurate positioning of the elements
CodePudding user response:
InnerHTML elements?