Search
 
 

Display results as :
 


Rechercher Advanced Search

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

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

View previous topic View next topic Go down

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

Post by venkatkoritala 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..

venkatkoritala

Posts : 6
Join date : 2012-11-22

Back to top Go down

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

Post by Adviser 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

Adviser
------------------------
------------------------

Posts : 379
Join date : 2009-07-30
Location : India

http://seleniumforum.forumotion.net

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum