You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
diff --git a/webbot/webbot.py b/webbot/webbot.py
index 5bcbe96..38420a6 100644
--- a/webbot/webbot.py+++ b/webbot/webbot.py@@ -297,7 +297,7 @@ class Browser:
add_to_init_text_matches_score(self.driver.find_elements(By.CSS_SELECTOR, css_selector), 80)
if xpath:
- add_to_init_text_matches_score(self.driver.find_elements(By.CSS_SELECTOR, xpath), 100)+ add_to_init_text_matches_score(self.driver.find_elements(By.XPATH, xpath), 100)
if not text and tag:
element_fetch_helper(("//body//{}".format(tag)), score=50)
Note
By doing so it is possible to call the find_elements function with xpath argument without generating an error.
This guide has been tested on a new (clean) environment and everything worked. I think it is impossible to break everything (?) by just following those steps. The most critical one, for your Python environment, could be the pip3 install . part.
Before doing anything, it is always a good thing to commit/backup. I am not quite sure you did that.
I don't like your attitude. You're stating that "everything has stopped working", but what is "everything"? The search tool? These are simple steps which I don't think will lead to formatting your system.
If you broke something, whatever it means to you, you should at least report exactly what. But if this is your attitude, I don't think I'll spend my time helping.
Warning
webbot
library is no longer maintained. A fork is available here.webbot.py
file:Note
By doing so it is possible to call the
find_elements
function withxpath
argument without generating an error.webbot
library:ChromeDriver
version.pip3 list
output:Python version: 3.12.1
The text was updated successfully, but these errors were encountered: