- venkatkoritala
- Posts : 6
Join date : 2012-11-22
is it possible to create a batch file and run test suite with that for selenium ide...?
Thu Nov 29, 2012 1:31 pm
is it possible to create a batch file and run test suite with that for selenium ide...?
i know it is possible in rc and webdriver but i want to run selenium ide with .bat file..
i know it is possible in rc and webdriver but i want to run selenium ide with .bat file..
Re: is it possible to create a batch file and run test suite with that for selenium ide...?
Tue Dec 04, 2012 8:58 pm
In javascript you can do this in following ways
You can use that line runScript command of selenium by copying that javascript code into that. It's just a hint, figure out !!
Best of luck
- Code:
<html>
<head>
<script type="text/javascript">
function runApp(which) {
WshShell = new ActiveXObject("WScript.Shell");
WshShell.Run (which,1,false);
}
</script>
</head>
<body>
<!-- Two ways to create a link to run the app. -->
<font onClick="runApp('file://c:/winnt/notepad.exe');" style="cursor: hand;"><u>Notepad</u></font>
<br>
<!-- Or use <a> descriptor -->
<a href="runApp('file://c:/test.bat');">Batch File</a>
</body>
</html>
You can use that line runScript command of selenium by copying that javascript code into that. It's just a hint, figure out !!
Best of luck
Permissions in this forum:
You cannot reply to topics in this forum