Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How you can refresh a page in Watir-Webdrive?

How can I refresh a page using watir-webdrive? I tried what they are saying here: http://watirwebdriver.com/sending-special-keys/ , but no luck.

browser.send_keys :f5

Any other suggestions? Thanks

like image 213
Mike Thunder Avatar asked Aug 31 '12 12:08

Mike Thunder


People also ask

What are possible ways to refresh a page?

Force-refresh your web page.Windows — Press Ctrl + F5 . If that doesn't work, hold down Ctrl and click the "Refresh" icon. Mac — Press ⌘ Command + ⇧ Shift + R . In Safari, you can also hold ⇧ Shift and click the "Refresh" icon.

What is Watir used for?

Definition: Watir, pronounced as water, is a group of Ruby libraries for automated web browsers. It allows writing the tests which are easy to read and maintain. In other words, it is a simple and flexible tool.


1 Answers

You can do:

browser.refresh

See docs.

like image 137
Justin Ko Avatar answered Jan 01 '23 21:01

Justin Ko