Module Expr Str Import alias Import alias Import alias Import alias Import alias Assign NameStore Str Assign NameStore Str FunctionDef arguments args defaults body Expr Str TryExcept body Assign NameStore Call NameLoad NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Print Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Print Str handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Return NameLoad handlers ExceptHandler body Return NameLoad decorator_list FunctionDef arguments args defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore NameLoad Assign NameStore ListLoad Str Str NameLoad Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Call NameLoad BinOpMod Str NameLoad Str keyword Call NameLoad BinOpMod Str NameLoad Str Expr Call AttributeLoad NameLoad attr Num If CompareEq Call AttributeLoad NameLoad attr Num body Raise Call NameLoad Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Expr Call AttributeLoad NameLoad attr Return CompareEq Call AttributeLoad NameLoad attr Num handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad BinOpAdd Str NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If Call NameLoad NameLoad NameLoad body Return If UnaryOpNot Call NameLoad body Expr Call NameLoad TryExcept body Return Call NameLoad NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad body Print Str decorator_list
N/A N/A  Download and run the selenium server jar file  N/A subprocess N/A os N/A socket N/A urllib N/A time N/A SELENIUM_JAR http://selenium-release.storage.googleapis.com/2.52/selenium-server-standalone-2.52.0.jar N/A JAR_FILE selenium-server-standalone-2.52.0.jar download_selenium N/A N/A N/A N/A N/A 
    Downloads the selenium server jar file from its
    online location and stores it locally.
     N/A N/A N/A local_file N/A open JAR_FILE wb N/A remote_file N/A N/A urllib urlopen SELENIUM_JAR N/A Downloading Selenium Server JAR File...
 N/A N/A N/A local_file write N/A N/A remote_file read N/A N/A N/A local_file close N/A N/A N/A remote_file close N/A Download Complete!
 N/A N/A N/A Exception N/A details N/A N/A N/A Exception N/A Error while downloading Selenium Server. Details: %s details N/A is_running_locally N/A N/A host port N/A N/A N/A socket_s N/A N/A socket socket N/A socket AF_INET N/A socket SOCK_STREAM N/A N/A N/A N/A N/A socket_s connect N/A host port N/A N/A N/A socket_s close N/A True N/A N/A N/A N/A False N/A is_available_locally N/A N/A N/A N/A N/A N/A N/A N/A os path isfile JAR_FILE N/A start_selenium_server N/A N/A selenium_jar_location port file_path N/A N/A N/A 
    Starts selenium on the specified port
    and configures the output and error files.
    Throws an exeption if the server does not start.
     N/A process_args None N/A process_args N/A java -jar selenium_jar_location -port port N/A selenium_exec N/A N/A subprocess Popen process_args stdout N/A open N/A %s/log_seleniumOutput.txt file_path w stderr N/A open N/A %s/log_seleniumError.txt file_path w N/A N/A N/A time sleep 2 N/A N/A N/A N/A selenium_exec poll 1 N/A N/A N/A StartSeleniumException The selenium server did not start.Do you already have one runing? N/A selenium_exec N/A stop_selenium_server N/A N/A selenium_server_process N/A N/A N/A Kills the selenium server.  We are expecting an error 143 N/A N/A N/A N/A N/A selenium_server_process terminate N/A N/A N/A N/A selenium_server_process poll 143 N/A N/A N/A Exception N/A details N/A N/A N/A Exception N/A Cannot kill selenium process, details:  details N/A StartSeleniumException N/A Exception N/A __init__ N/A N/A self value N/A N/A N/A N/A self value value N/A __str__ N/A N/A self N/A N/A N/A N/A repr N/A self value N/A N/A execute_selenium N/A N/A host port file_path N/A N/A N/A N/A is_running_locally host port N/A N/A N/A N/A N/A is_available_locally N/A N/A N/A download_selenium N/A N/A N/A N/A start_selenium_server JAR_FILE port file_path N/A N/A N/A StartSeleniumException N/A N/A Selenium Server might already be running. Continuing...  N/A