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
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.
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.
You can do:
browser.refresh
See docs.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With