#NEWLINE# def scenario_full( user ) : #NEWLINE# #INDENT# driver = user . get_driver ( ) #NEWLINE# driver . get ( ( user . base_url + '/hub/login' ) ) #NEWLINE# user . log ( 'login' ) #NEWLINE# driver . find_element_by_id ( 'username_input' ) . clear ( ) #NEWLINE# driver . find_element_by_id ( 'username_input' ) . send_keys ( driver . login ) #NEWLINE# driver . find_element_by_id ( 'password_input' ) . clear ( ) #NEWLINE# driver . find_element_by_id ( 'password_input' ) . send_keys ( user . password ) #NEWLINE# driver . find_element_by_id ( 'login_submit' ) . click ( ) #NEWLINE# user . wait_for_element_present ( By . ID , 'start' ) #NEWLINE# driver . find_element_by_id ( 'start' ) . click ( ) #NEWLINE# user . wait_for_element_present ( By . ID , 'repository_input' ) #NEWLINE# driver . find_element_by_id ( 'repository_input' ) . clear ( ) #NEWLINE# driver . find_element_by_id ( 'repository_input' ) . send_keys ( user . repo ) #NEWLINE# driver . find_element_by_xpath ( "//input[@value='Spawn']" ) . click ( ) #NEWLINE# user . log ( 'spawn clicked' ) #NEWLINE# user . wait_for_element_present ( By . LINK_TEXT , 'Control Panel' ) #NEWLINE# driver . find_element_by_link_text ( 'Control Panel' ) . click ( ) #NEWLINE# user . wait_for_element_present ( By . ID , 'stop' ) #NEWLINE# driver . find_element_by_id ( 'stop' ) . click ( ) #NEWLINE# user . log ( 'stop clicked' ) #NEWLINE# user . wait_for_element_present ( By . ID , 'start' ) #NEWLINE# driver . find_element_by_id ( 'logout' ) . click ( ) #NEWLINE# user . log ( 'logout clicked' )