c# - Other text input methods? -


There is a bunch of websites with the "search" input box.
If I manually input a word, it automatically searches without the need to click any button

Using the following code:

 < Code> GeckoInputElement input = (GeckoInputElement) geckoHtmlElement; Input. Value = "keyword";   

I see that the search input box is full, but nothing happens automatically.
If I manually add space or any character then the website works as expected.
The automatic search for my desired word.

I tried to use the input. Focus (); But still this is the same.
Any ideas how can I input in a more advanced way in the search box or something like that?

I think the solution here is to manually trigger the event that triggers itself - for example Key event for I had a problem I solved by adding this code:

  nsAStringBase eventType = (nsAStringBase) new nsAString ("keyup"); Var ev = browser.Document.CreateEvent ("HTMlevents"); Ev.DomEvent.InitEvent (eventType, incorrect, incorrect); . NameBox.GetEventTarget () dispatchEvent (EV);   

You will need to inspect your page and see if there are any JavaScript events associated with your input.

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -