It's a simple script, giving me an error. I'm running it from a command line:
scott$ python VerifyAboutPage.py chrome any
And the error is:
AttributeError: 'module' object has no attribute 'chrome'
The relevant portions of the script should be:
from selenium import webdriver
import unittest, time, re, reporting, sys
class VerifyAboutPage(unittest.TestCase):
capabilities = None
def setUp(self):
driver = webdriver.Remote(desired_capabilities=self.capabilities)
def tearDown(self):
driver.quit()
testreport.close()
if __name__ == "__main__":
VerifyAboutPage.capabilities = {"browserName": sys.argv[1], "platform": sys.argv[2],}
unittest.main()
I'm sure it's a simple error.