Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

0 like 0 dislike
873 views
in Test Automation by
I am using selenium grid to execute tests. I am hooking grid using batch files. Is there any command to kill IEDriverServer.exe and clear %temp% folder, which I can use to execute before starting grid?

1 Answer

0 like 0 dislike
by
selected by
 
Best answer

Try using below code while starting grid server.

@echo off
taskkill /f /im IEDriverServer.exe

set "var=%cd%"
cd %temp%
for /d %%D in (*) do rd /s /q "%%D"
del /f /q *

cd %var%
java -jar selenium-server.jar -role hub

Hope it helps


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

1.4k questions

1.6k answers

866 comments

1.9k users

...