Open onix010 opened 3 years ago
You can fix this by replacing
section_list = driver.find_element_by_class_name('section-list')
link = section_list.find_element_by_class_name('yt-uix-tile-link')
in the try statement of the _search_and_click_ function by
link = driver.find_element_by_id('video-title')
.
YouTube changed their class names.
It does not click on the video and play. It just closes itself on search.