简体   繁体   中英

How to refresh the browser using watir in cucumber rails

I am using ruby 2.3.1p112 , Rails 5.1.5 version I do a automation testing with gem 'watir' I need to refresh the browser in my script So I add the below code

browser.refresh

But there is no action done on this command

The issue is with your website, I am using the same version of ruby and watir and the code:

browser.refresh

works perfectly fine.

I would suggest looking at your website for any scripts that could potentially be stopping you from refreshing the webpage.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM