Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 selenium-webdriver,对于我的场景,我需要终止一个窗口进程来执行其中一项功能,我可以使用 selenium-webdriver 终止一个进程吗?如果是的话,有人可以帮忙吗?
您可以通过使用WindowsUtils类来实现这一点
公共无效杀戮WindowsProcess(){ WindowsUtils.tryToKillByName("firefox.exe"); /* ...... 代码行...... ................................................... ................................... */ }
我认为这将解决目的。