I'm writing a script to automate a task on chrome,I'm using Python and Selenium,the problem is that the task requires clicking on a button in a chrome extension popup to finish the task but I can't initiate the click() class on a chrome extension popup using selenium.
Do you have any idea on how we can solve such a problem ?
Alright, since no one answered my question I will answer how I solved this issue
all  I did is that I used the Pynput library to interact with the chrome extension by simulating keyboard clicks.
to toggle between pages and elements I had to use the Tab button which converts to
keyboard = Controller() keyboard.press(Key,tab) keyoard.release(Key,tab)
in python code and added some delay between each activity so it can run smoothly without any issues.
it might not be the best solution but at least it works now
can't interact with popup chrome extention using Selenium in Python