I'm trying to get screencaptures for failed selenium tests running in parallel on a MAC node and a PC node using selenium grid. The tests run, but fails to create the screencaptures. I'm getting a nullpointerexception. Can someone advise me how to fix this? Thanks.
java.lang.NullPointerException
问题是当您创建Screenshot的实例时,驱动程序仍然为null,因此您需要在浏览器初始化后创建其实例。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.