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 fc12a66 commit c4a6fdcCopy full SHA for c4a6fdc
tests/test_driver.py
@@ -5,7 +5,7 @@
5
6
def test_cookies():
7
with SeleniumDriver("firefox", headless=True) as obj:
8
- obj.get("http://google.com")
+ obj.get("https://www.google.com/")
9
10
# Validate cookies type
11
assert type(obj.cookies()) is dict
@@ -24,3 +24,18 @@ def test_cookies():
24
obj.set_cookies(drop_keys={"version"})
25
cookies = obj.cookies()
26
assert cookies.get("version", 1) == 1
27
+
28
29
+def test_base():
30
+ with SeleniumDriver("firefox", headless=True) as obj:
31
+ URL = "https://www.google.com/"
32
+ obj.get(URL)
33
34
+ # session
35
+ assert type(obj.session()) is str
36
37
+ # current_url
38
+ assert URL in obj.url()
39
40
+ # page_source
41
+ assert len(obj.text()) > 100
0 commit comments