[ad_1]
Friends, when I run on a 15″ monitor, capybara is not able to click on a specific menu item, but when I run on a 29″ monitor, the test works perfectly. How to adjust this in a way that the test runs regardless of monitor size. I am using the following configuration below. Thank’U
Capybara.default_driver = driver
Capybara.default_max_wait_time = 30
Capybara.page.current_window.resize_to(1366, 768)
Capybara.page.driver.browser.manage.window.maximize
[ad_2]