You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: google-serach-lambdatest.py
+36-32Lines changed: 36 additions & 32 deletions
Original file line number
Diff line number
Diff line change
@@ -1,37 +1,39 @@
1
-
"""
2
-
LambdaTest selenium automation sample example
3
-
Configuration
4
-
----------
5
-
username: Username can be found at automation dashboard
6
-
accessToken: AccessToken can be generated from automation dashboard or profile section
7
-
8
-
Result
9
-
-------
10
-
Execute Python Automation Tests on LambdaTest Distributed Selenium Grid
11
-
"""
12
1
importunittest
13
2
importtime
14
3
fromseleniumimportwebdriver
15
4
fromselenium.webdriver.common.keysimportKeys
16
5
17
6
18
-
classLTAutomate(unittest.TestCase):
19
7
8
+
classLTAutomate(unittest.TestCase):
20
9
"""
21
-
Setup remote driver
22
-
Params
10
+
LambdaTest selenium automation sample example
11
+
Configuration
23
12
----------
24
-
platform : Supported platform - (Windows 10, Windows 8.1, Windows 8, Windows 7, macOS High Sierra, macOS Sierra, OS X El Capitan, OS X Yosemite, OS X Mavericks)
25
-
browserName : Supported platform - (chrome, firefox, Internet Explorer, MicrosoftEdge)
26
-
version : Supported list of version can be found at https://www.lambdatest.com/capabilities-generator/
13
+
username: Username can be found at automation dashboard
14
+
accessToken: AccessToken can be genarated from automation dashboard or profile section
27
15
28
16
Result
29
17
-------
18
+
Execute Test on lambdatest Distributed Grid perform selenium automation based
30
19
"""
20
+
21
+
31
22
defsetUp(self):
23
+
"""
24
+
Setup remote driver
25
+
Params
26
+
----------
27
+
platfrom : Supported platfrom - (Windows 10, Windows 8.1, Windows 8, Windows 7, macOS High Sierra, macOS Sierra, OS X El Capitan, OS X Yosemite, OS X Mavericks)
28
+
browserName : Supported platfrom - (chrome, firefox, Internet Explorer, MicrosoftEdge)
29
+
version : Supported list of version can be found at https://www.lambdatest.com/capabilities-generator/
30
+
31
+
Result
32
+
-------
33
+
"""
32
34
# username: Username can be found at automation dashboard
33
35
username="{username}"
34
-
# accessToken: AccessToken can be generated from automation dashboard or profile section
36
+
# accessToken: AccessToken can be genarated from automation dashboard or profile section
35
37
accessToken="{accessToken}"
36
38
# gridUrl: gridUrl can be found at automation dashboard
0 commit comments