c# - Other text input methods? -
there bunch of websites "search" input boxes. if input word manually automatically search without need click buttons.
using next code:
geckoinputelement input = (geckoinputelement)geckohtmlelement; input.value = "searchword";
the see search input box filled nil happens automatically. if manually add together space or character website works expected. auto searches wanted word.
i tried using input.focus(); still same. ideas how can input text search box in more advanced way or that?
i think solution here manually trigger event triggers search - illustration keyup event. had same problem solved adding code:
nsastringbase eventtype = (nsastringbase)new nsastring("keyup"); var ev = browser.document.createevent("htmlevents"); ev.domevent.initevent(eventtype, false, false); namebox.geteventtarget().dispatchevent(ev);
you need inspect page , see if there javascript events attached input. luck!
c# geckofx
No comments:
Post a Comment