首页 > 解决方案 > Selenium WebDriver 中 org.openqa.selenium.remote.session.StripAnyPlatform 类的目的是什么?

问题描述

我在 selenium javadoc 下看到有关 org.openqa.selenium.remote.session.StripAnyPlatform 类的信息。但我无法理解它的用途。谷歌搜索没有提供正确的信息。任何人都可以对此有所了解吗?

标签: javaseleniumselenium-webdriver

解决方案


它与Selenium Remote一起使用。您在远程实例中使用的平台存储在一个Map对象中。

因此,org.openqa.selenium.remote.session.StripAnyPlatform 所做的只是将该 Map 对象设置为 null。


推荐阅读