browser-automation

How to find out which JavaScript events fired?

大城市里の小女人 提交于 2019-11-26 00:46:40
问题 I have a select list: <select id=\"filter\"> <option value=\"Open\" selected=\"selected\">Open</option> <option value=\"Closed\">Closed</option> </select> When I select Closed the page reloads. In this case it shows closed tickets (instead of opened). It works fine when I do it manually. The problem is that the page does not reload when I select Closed with Watir: browser.select_list(:id => \"filter\").select \"Closed\" That usually means that some JavaScript event is not fired. I can fire