url invalid #1793
-
as code below |
Beta Was this translation helpful? Give feedback.
Replies: 0 comments
-
i have found the solution def __looks_like_a_page_url(self, url): add this to it 4.save and enjoy it |
Beta Was this translation helpful? Give feedback.
i have found the solution
on windows
1.pip install seleniumbase,find the seleniumbase install path
like
C:\Users\USER\AppData\Local\Programs\Python\Python39\Lib\site-packages\seleniumbase
2.in the dir,find the file,open it
C:\Users\USER\AppData\Local\Programs\Python\Python39\Lib\site-packages\seleniumbase\fixtures\base_case.py
3.change the code
def __looks_like_a_page_url(self, url):
"""Returns True if the url parameter looks like a URL. This method
is slightly more lenient than page_utils.is_valid_url(url) due to
possible typos when calling self.get(url), which will try to
navigate to the page if a URL is detected, but will instead call
self.get_element(URL_AS_A_SELECTOR) if the input in…