Home > other >  Python selenium2 get span tags within the value
Python selenium2 get span tags within the value

Time:09-17



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 text
It should be ok, I doubt that is you no accurate positioning of the elements

CodePudding user response:

InnerHTML elements?
  • Related