Like:
Use find element by class name
content = driver.find_element_by_class_name('content')
https://selenium-python.readthedocs.io/locating-elements.html
In above case, if class name "btn-red" is unique for the page,
content = driver.find_element_by_class_name('btn-red')
work.
0 件のコメント:
コメントを投稿