Home > other >  Python selenium get Div text
Python selenium get Div text

Time:10-02







Want to use the selenium for the contents of a div on
data=https://bbs.csdn.net/topics/browser.find_element_by_id (" Enable_S "). The text
This has been an error, please expert help see? Thanks a lot

CodePudding user response:

Problem has been resolved

CodePudding user response:

How to solve

CodePudding user response:

To ask, how to solve? Hope the landlord to reply, thank you!

CodePudding user response:

The building Lord uncool

The find_by_id (' Enable_S '). The value

CodePudding user response:

Is that so? Finally add a bracket
data=https://bbs.csdn.net/topics/browser.find_element_by_id (" Enable_S "). The text ()

CodePudding user response:

The text value is empty, how to solve?



Value the method # 4 floor no.
The tail without parentheses # 5 floor

CodePudding user response:

Can use first is_displayed to judge whether the current positioning of elements is hidden, if be hidden, can use get_attribute () to obtain element attributes
  • Related