Skip to content

Commit f2787c6

Browse files
authoredJan 5, 2019
Update google-serach-lambdatest.py
1 parent 35d311e commit f2787c6

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed
 

‎google-serach-lambdatest.py

+7-8
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,26 @@
33
Configuration
44
----------
55
username: Username can be found at automation dashboard
6-
accessToken: AccessToken can be genarated from automation dashboard or profile section
6+
accessToken: AccessToken can be generated from automation dashboard or profile section
77
88
Result
99
-------
10-
Execute Test on lambdatest Distributed Grid perform selenium automation based
10+
Execute Python Automation Tests on LambdaTest Distributed Selenium Grid
1111
"""
1212
import unittest
1313
import time
1414
from selenium import webdriver
1515
from selenium.webdriver.common.keys import Keys
1616

1717

18-
1918
class LTAutomate(unittest.TestCase):
2019

2120
"""
2221
Setup remote driver
2322
Params
2423
----------
25-
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)
26-
browserName : Supported platfrom - (chrome, firefox, Internet Explorer, MicrosoftEdge)
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)
2726
version : Supported list of version can be found at https://www.lambdatest.com/capabilities-generator/
2827
2928
Result
@@ -32,7 +31,7 @@ class LTAutomate(unittest.TestCase):
3231
def setUp(self):
3332
# username: Username can be found at automation dashboard
3433
username="{username}"
35-
# accessToken: AccessToken can be genarated from automation dashboard or profile section
34+
# accessToken: AccessToken can be generated from automation dashboard or profile section
3635
accessToken="{accessToken}"
3736
# gridUrl: gridUrl can be found at automation dashboard
3837
gridUrl = "beta-hub.lambdatest.com/wd/hub"
@@ -54,7 +53,7 @@ def setUp(self):
5453
# URL: https://{username}:{accessToken}@beta-hub.lambdatest.com/wd/hub
5554
url = "https://"+username+":"+accessToken+"@"+gridUrl
5655

57-
print("Initiating remote driver on platfrom: "+desired_cap["platform"]+" browser: "+desired_cap["browserName"]+" version: "+desired_cap["version"])
56+
print("Initiating remote driver on platform: "+desired_cap["platform"]+" browser: "+desired_cap["browserName"]+" version: "+desired_cap["version"])
5857
self.driver = webdriver.Remote(
5958
desired_capabilities=desired_cap,
6059
command_executor= url
@@ -71,7 +70,7 @@ def setUp(self):
7170
"""
7271
def test_search_in_google(self):
7372
driver = self.driver
74-
print("Driver initiated sucessfully. Navigate url")
73+
print("Driver initiated successfully. Navigate url")
7574
driver.get("https://www.google.com/ncr")
7675

7776
print("Searching lambdatest on google.com ")

0 commit comments

Comments
 (0)
Failed to load comments.