We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29fa0aa commit 0c25fbfCopy full SHA for 0c25fbf
README.md
@@ -49,8 +49,7 @@ If everything is working correctly, it will return an IP address of a proxy that
49
50
## Full Code
51
```python
52
-import re
53
-
+from selenium.webdriver.common.by import By
54
from seleniumwire import webdriver
55
# A package to have a chromedriver always up-to-date.
56
from webdriver_manager.chrome import ChromeDriverManager
@@ -80,7 +79,7 @@ def execute_driver():
80
79
)
81
try:
82
driver.get("https://ip.oxylabs.io/")
83
- return f'\nYour IP is: {driver.find_element_by_css_selector("pre").text}'
+ return f'\nYour IP is: {driver.find_element(By.CSS_SELECTOR, "pre").text}'
84
finally:
85
driver.quit()
86
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments