Keys.BACKSPACE Keys.SPACE

 

 

browser.find_element_by_xpath(xp_newpage).send_keys(Keys.SPACE)
browser.find_element_by_xpath(xp_newpage).send_keys(Keys.CONTROL, 'a')
browser.find_element_by_xpath(xp_newpage).send_keys(Keys.CONTROL, 'x')
browser.find_element_by_xpath(xp_newpage).send_keys(Keys.CONTROL, 'v')
browser.find_element_by_xpath(xp_newpage).send_keys(Keys.BACKSPACE)
browser.find_element_by_xpath(xp_newpage).send_keys(Keys.BACKSPACE)
posted @ 2018-01-31 00:55  papering  阅读(327)  评论(0编辑  收藏  举报