question with javascript and sendkeys?

2014-11-05T22:45:02Z

can anyone help me get the "test" to appear in the search section with the use of sendkeys?

2014-11-05T22:45:32Z

<html>

<head>
<script>
var WshShell = new ActiveXObject("WScript.Shell");

function google()
{
WshShell.Run("iexplore.exe -nomerge http://www.google.com");
WScript.Sleep (5000);
WshShell.SendKeys ('test');
WScript.Quit(1);
}
</script>
</head>

<a href="#" onclick="javascript:google();">google</a>

</html>

Anonymous2014-11-06T06:29:35Z

Favorite Answer

I raised the issue of the test failure. It's not something they intend to change. I have an alternate behavior that I can turn into a custom command and share, if you like?

I have a similar situation. We have certain views that are only visible at certain times or days.