wait_until(lambda : driver.find_element_by_xpath("//window[1]/tableview[1]/cell[2]/textfield[1]").is_displayed(), timeout=10)
do_until(lambda : driver.find_element_by_xpath("//window[1]/tableview[1]/cell[2/textfield[1]]").click())
driver.find_element_by_xpath("//window[1]/tableview[1]/cell[2]/textfield[1]").send_keys(get_username())
I was hoping for the first function to return an element that was found that way I could do this...
wait_until(lambda : driver.find_element_by_xpath("//window[1]/tableview[1]/cell[2]/textfield[1]").is_displayed(), timeout=10)
do_until(lambda : element.click())
element.send_keys(get_username())
...or something along those lines
element = lambda: driver.find_element_by_xpath("//window[1]/tableview[1]/cell[1]/textfield[1]")
wait_until(lambda : element().is_displayed(), timeout=10)
do_until(lambda : element().click())
element().send_keys(get_connect_user())