Skip to content

Commit 35e2215

Browse files
committed
Add a proxy test that gets the ip address from Bing
1 parent 2cbeb72 commit 35e2215

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

examples/proxy_bing_test.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import time
2+
from seleniumbase import BaseCase
3+
4+
5+
class MyTestClass(BaseCase):
6+
7+
def test_proxy_on_bing(self):
8+
self.open('https://www.bing.com/search?q=what+is+my+ip')
9+
ip_address = self.get_text("#b_results li.b_top")
10+
print("\n\n%s\n" % ip_address)
11+
print("\nThe browser will close automatically in 7 seconds...")
12+
time.sleep(7)

0 commit comments

Comments
 (0)