ruby - Handling javascript popups in watir using an event driven mechanism -
i have scenario trying automate data entry/retrieval into/from form. form consists of buttons support general add/edit/delete operations on data. well, problem have depending upon entries user enters (e.g. duplicate entries, incorrect password/login id), pop-up triggered. need obtain text appearing in popup , dismiss it.
i used following links on how handle them
- javascript popup handling
discussion on popup handling in watir.
i saw lot of solutions javascript pop-ups (either using auto-it or without using it).
from understand, a) solution 2 on wiki starts off process , polls whether popup appears every 1 second. b) solutions 3,4,5 write handler dismiss popups know in advance when popup going appear. c) trying make sense of solution 7 posted tony, pointers on appreciated.
in scenario described, popups generated dynamically click of button, solution 2 seems right option, polling appearing of popup seems overkill. know ruby not provide native support event handling c# or listeners model in java, wondering whether possible trigger off popup handling mechanism means of event driven approach.
thanks in advance guys provide. appreciate it. also, have been clear , descriptive far can problem
Comments
Post a Comment