Skip to content

Instantly share code, notes, and snippets.

@technomalogical
Created April 5, 2011 16:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save technomalogical/903970 to your computer and use it in GitHub Desktop.
Save technomalogical/903970 to your computer and use it in GitHub Desktop.
login and select menu in web app
def login(self,username,password):
sel = self.sel
sel.get(self.HOME)
elem = sel.find_element_by_id("userId")
elem.send_keys(username)
elem = sel.find_element_by_id("password")
elem.send_keys(password+Keys.ENTER)
def select_menu(self):
sel = self.sel
sel.implicitly_wait(20)
sel.switch_to_frame("main")
elem = sel.find_element_by_id("IM_menuButton")
elem.click();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment