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 0b9276e commit d04f8aaCopy full SHA for d04f8aa
examples/user_agent_test.py
@@ -0,0 +1,14 @@
1
+import time
2
+from seleniumbase import BaseCase
3
+
4
5
+class MyTestClass(BaseCase):
6
7
+ def test_user_agent(self):
8
+ self.open('http://www.whatsmyua.info/')
9
+ user_agent = self.get_text("#custom-ua-string")
10
+ print("\n\nUser-Agent = %s\n" % user_agent)
11
+ print("Displaying User-Agent Info:")
12
+ print(self.get_text("#useragent"))
13
+ print("\nThe browser will close automatically in 7 seconds...")
14
+ time.sleep(7)
0 commit comments