Skip to content

Commit c4a6fdc

Browse files
author
ravishankar
committed
basic test cases added
1 parent fc12a66 commit c4a6fdc

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

tests/test_driver.py

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
def test_cookies():
77
with SeleniumDriver("firefox", headless=True) as obj:
8-
obj.get("http://google.com")
8+
obj.get("https://www.google.com/")
99

1010
# Validate cookies type
1111
assert type(obj.cookies()) is dict
@@ -24,3 +24,18 @@ def test_cookies():
2424
obj.set_cookies(drop_keys={"version"})
2525
cookies = obj.cookies()
2626
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

Comments
 (0)