How to handle browser popup dialog

Asked by ericwong

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:
Last query:
Last reply:
Revision history for this message
ericwong (55158644-y) said :
#1

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