Share
Go down
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...?

on 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..
avatar
Advisor
------------------------
------------------------
Posts : 383
Join date : 2009-07-30
Location : India
http://seleniumforum.forumotion.net

Re: is it possible to create a batch file and run test suite with that for selenium ide...?

on Tue Dec 04, 2012 8:58 pm
In javascript you can do this in following ways

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 Smile


_________________
Spread Your Knowledge About Selenium Tool.

Administrator
Email: selenium.discussion.thread@live.com
Forum: http://seleniumforum.forumotion.net
Back to top
Permissions in this forum:
You cannot reply to topics in this forum