Skip to content
Advertisement

Message: element not interactable Error While Sending Keys [search_bar.send_keys(course_name)] To Search Bar Of Youtube using selenium python

I tried Most of the solution of StackOverflow but didn’t work for me I am trying to send some course name to youtube search bar using selenium python it works fine before but now it gives this error while doing this And search_bar.send_keys(course_name) works fine for other websites but not in YT

JavaScript

Code sample

JavaScript

getYoutubeCourse() function body

JavaScript

then after this, the logic of scraping the youtube links is there I also tried web driver wait and all, and my drivers are also up to date

Please help I am new in python and selenium

Advertisement

Answer

There is 3 elements found by xpath : //*[@id="search"]

You have to correct it to

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement