How to kill a particular task using ruby script
We are using selenium cucumber with ruby scripting. We had written ruby script code to kill the particular task but this code
is working in some machines and its not working in other machines. Please find the code. Also if possible please let me know if I need to write different code for killing the task on Linux OS.
Then(/^close application$/) do
`taskkill /im javaw.exe /f`
Thanks and Regards,