Refresh page.

17 views
Skip to first unread message

Shubham Arora

unread,
Sep 17, 2015, 6:30:54 AM9/17/15
to phantomjs

In phantomjs, how to refresh a page?  I have tried  below ways but seems it doesn't work.  Please suggest something new.   Below code is in C#.

                     Actions act = new Actions(Browser.Instance.Driver);
                     
                     a = act.SendKeys(Keys.Enter).SendKeys(Keys.F5).Build();

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
                    a = act.KeyDown(Keys.Control).SendKeys("R").Build();

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

                    Browser.Instance.Driver.Navigate().Back();

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

                    Browser.Instance.Driver.Navigate().Refresh();
Reply all
Reply to author
Forward
0 new messages