Skip to content

url invalid #1793

Discussion options

You must be logged in to vote

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…

Replies: 0 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by drinktea690115
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant