I have a WebView in Form. And I am using this code.
WebView ww = (WebView)findViewById(R.id.webView);
WebSettings webSettings = ww.getSettings();
webSettings.setJavaScriptEnabled(true);
ww.loadUrl("http://www.youtube.com");
What I want is, when the page has finished loading, I want the my TextView value to be set on the search input box and start a search.
Firstly I think this code will work.
webView.loadUrl("javascript: {document.getElementsByID('masthead-search-term').value ='TEST1';};");
But when I use this code, I see only "TEST1" in all page.
Thanks for help from now!