Selenium and Python to find elements and text?

后端 未结 2 927
臣服心动
臣服心动 2020-12-28 18:34

When I go to a certain webpage I am trying to find a certain element and piece of text:



        
2条回答
  •  悲哀的现实
    2020-12-28 18:50

    The problem is actually with the class name as the spaces causes the element to have 3 different classes (separated by the space)

    If you set the class to Bold-Orange-Large instead it should work as expected with the elem.text method.

提交回复
热议问题