<s> from openstack_dashboard . test . integration_tests . pages . project . network import routerspage <EOL> from openstack_dashboard . test . integration_tests . regions import forms <EOL> from openstack_dashboard . test . integration_tests . regions import tables <EOL> class RoutersTable ( routerspage . RoutersTable ) : <EOL> EDIT_ROUTER_FORM_FIELDS = ( "<STR_LIT:name>" , "<STR_LIT>" , "<STR_LIT>" ) <EOL> @ tables . bind_row_action ( '<STR_LIT>' ) <EOL> def edit_router ( self , edit_button , row ) : <EOL> edit_button . click ( ) <EOL> return forms . FormRegion ( self . driver , self . conf , None , <EOL> self . EDIT_ROUTER_FORM_FIELDS ) <EOL> class RoutersPage ( routerspage . RoutersPage ) : <EOL> @ property <EOL> def routers_table ( self ) : <EOL> return RoutersTable ( self . driver , self . conf ) <EOL> def edit_router ( self , name , new_name , admin_state = None ) : <EOL> row = self . _get_row_with_router_name ( name ) <EOL> edit_router_form = self . routers_table . edit_router ( row ) <EOL> edit_router_form . name . text = new_name <EOL> if admin_state is not None : <EOL> edit_router_form . admin_state . text = admin_state <EOL> edit_router_form . submit ( ) </s>
