How to handle browser popup dialog

Asked by ericwong on 2013-11-19

Could you please help me about how to handle the browser pop up. For example, browse button for file selector. JS error pop up.
As I know, in common selenium in python. we handle it in this way. drv.find_element_by_id("IdOfInputTypeFile").send_keys(os.getcwd()+"/image.png")

Did you expose a similar API for ending user? I'm really appreciate if you can help me figure out.

Thanks,
Eric

Question information

Language:
English Edit question
Status:
Solved
For:
selenium-simple-test Edit question
Assignee:
No assignee Edit question
Solved by:
ericwong
Solved:
2013-11-21
Last query:
2013-11-21
Last reply:
ericwong (55158644-y) said : #1

write_textfield(<id or element>, <abspath of file>, False, False) answered my question.