79250343

Date: 2024-12-04 08:28:50
Score: 0.5
Natty:
Report link

First of all, there are two buttons that match the css selector tp-yt-paper-button#expand.

Secondly, sometimes Selenium doesn't really click for some reason. Using javascript will be better. Use this instead:

driver.execute_script("document.querySelectorAll('tp-yt-paper-button#expand')[1].click();")
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: eternal_white