Does Geb supports automating the File Browser Dialog?

369 views
Skip to first unread message

romz.a...@gmail.com

unread,
Oct 19, 2016, 11:49:43 PM10/19/16
to Geb User Mailing List
Hi Geb users,

I would like to know if Geb supports automating the File Browser Dialog<please see attachment>?

If yes can you give me idea on how to automate this one since i'm just a newbie on using GEB.

Thanks,
Romz


FileBrowser.JPG

bolleypally vijay kumar

unread,
Oct 20, 2016, 2:12:54 AM10/20/16
to geb-...@googlegroups.com
Hi Romz,

Generally automating this secnario with any tool is : the button or link which opens this File Browser Dialog from the application has type property value as 'file' we can simple do send keys of file path in local machine

Practical Example:

$("input[type=file]").sendKeys("File path")

in Geb way $("input[type=file]") << "File path"

All details were clearly mentioned at

4.14.6. File upload in GEB documentation


-Vijay

--
You received this message because you are subscribed to the Google Groups "Geb User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to geb-user+unsubscribe@googlegroups.com.
To post to this group, send email to geb-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/d6e755a4-491c-450a-acd0-ddceeb26f1f6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Men who try to do something and Fail are infinitely better than those
who try to do nothing ...
                                                                                    B.VIJAY

Sergio del Amo Caballero

unread,
Oct 20, 2016, 4:08:15 AM10/20/16
to Geb User Mailing List
Checkout as well the FileInput Module. It may help you too

Reply all
Reply to author
Forward
0 new messages