Switch Chrome to offline mode

219 views
Skip to first unread message

Luigi Bardelli

unread,
Sep 7, 2018, 1:20:02 AM9/7/18
to robotframe...@googlegroups.com
Hi all
Do you know if It is possible to switch Chrome to offline in the middle of a test? 
I would like to start in "online" mode, then switch to offline after some steps are completed

Thanks!!!

Tatu Aalto

unread,
Sep 7, 2018, 2:08:05 AM9/7/18
to luigi.b...@gmail.com, robotframework-users
Ugh

SeleniumLibrary does not provide a keyword for it, but it is possible from the Selenium API[1]. I have not tried to change the network conditions and therefore I don't know which browsers actually provide the support for the API.

Although you are the first one to ask it, as far I recall, setting and getting[2] the network could be good additions to the SeleniumLibrary. If you feel that this is important for you, could you raise an issue to the SeleniumLibrary issue tracker[3]. Would be even greater if the issue can be packed with pull request.

-Tatu
Send from my mobile
[3] 

On Fri, 7 Sep 2018, 08:20 Luigi Bardelli, <luigi.b...@gmail.com> wrote:
Hi all
Do you know if It is possible to switch Chrome to offline in the Middleton of a test?
Thanks!!!

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages