Replies: 2 comments 1 reply
-
After some testing, I figured out that:
Also, I just wanted to say thanks for creating SeleniumBase! It has proven to be very useful, easy to use, and will simplify a lot of things for me. |
Beta Was this translation helpful? Give feedback.
-
Tell us how you manage Metamask. I was unable to get the DOM in metamask using a regular webdriver. I like to use CDP mode, but I can't switch tabs and enter Metamask password. Please show a code example of how you used Seleniumbase and Metamask. Here's an example of code that didn't work with SB(uc=True, test=True, user_data_dir="C:\ChromeUser\p2", locale_code="en") as sb: I will be very grateful if you show code |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am new to web scraping and SeleniumBase, so sorry if this question seems pretty stupid.
While trying to use MetaMask with SeleniumBase, I discovered that it is possible to interact with it just as I did with Playwright—by directly accessing the web page whenever I expect a pop-up (e.g., opening chrome-extension://{EXTENSION_ID}/home.html). However, when attempting to do so, I encountered the following exception:
I edited page_utils.py at lines 169 and 114 (apparently, these functions verify the given URL) by adding
"chrome-extension:"
to each. This allowed the extension's page to open successfully. However, any action I try to perform on it takes a long time, whereas actions on other pages within the same session work fine.I am not sure what causes these long delays when interacting with extension pages, and I haven't been able to figure it out through debugging.
I can provide the source code if needed and would really appreciate any help.
Beta Was this translation helpful? Give feedback.
All reactions