Python Forum
Expose chrome extension buttons to Python - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Web Scraping & Web Development (https://python-forum.io/forum-13.html)
+--- Thread: Expose chrome extension buttons to Python (/thread-26747.html)



Expose chrome extension buttons to Python - robertjaxe - May-12-2020

Does anybody knows how to expose chrome extension button and functionality to python code?

I have a PID of active chrome window and need to activate extension from Python code.


RE: Expose chrome extension buttons to Python - Larz60+ - May-12-2020

you should use selenium to activate (click) the button.
see the web scraping tutorials on this forum, you can run through them quickly to get the basics you need.
Pay particular attention to the sections on selenium.
web scraping part 1
web scraping part 2


RE: Expose chrome extension buttons to Python - robertjaxe - May-12-2020

(May-12-2020, 06:17 PM)Larz60+ Wrote: you should use selenium to activate (click) the button.
see the web scraping tutorials on this forum, you can run through them quickly to get the basics you need.
Pay particular attention to the sections on selenium.
web scraping part 1
web scraping part 2

Thank you for suggestions. But that is not what I am looking for at the moment. Selenium does not have access to control Chrome extensions. Extension buttons aren't rendered by html. All you can do and must with Selenium is only to load the extension into webdriver.

What I was looking for is the possibility to somehow manipulate some extension functionality from Python code which requires to figure out a work around.