I have created the following Python - when I execute it I receive an error. The apparent errant line is in italics
from selenium import webdriver
import unittest
import sys
class ExampleTestCase(unittest.TestCase):
def setUp(self):
* Errant line below
self.__driver = webdriver.Remote(desired_capabilities={
"browserName": "firefox",
"platform": "Windows",*
})
print("Got this far")
def test_example(self):
self.__driver.get("http://www.google.com")
self.__assertEqual(self.driver.title, "Google")
def tearDown(self):
self.__driver.quit()
if __name__ == "__main__":
unittest.main()
The error is
ConnectionRefusedError: [WinError 10061] No connection could be made because the target machine actively refused it
During handling of the above exception, another exception occurred:
Can anyone suggest what the problem might be? I am using Python 3.4 and