java - Selenium WebDriver 中 org.openqa.selenium.remote.session.StripAnyPlatform 类的目的是什么?
问题描述
我在 selenium javadoc 下看到有关 org.openqa.selenium.remote.session.StripAnyPlatform 类的信息。但我无法理解它的用途。谷歌搜索没有提供正确的信息。任何人都可以对此有所了解吗?
解决方案
它与Selenium Remote一起使用。您在远程实例中使用的平台存储在一个Map
对象中。
因此,org.openqa.selenium.remote.session.StripAnyPlatform 所做的只是将该 Map 对象设置为 null。
推荐阅读
- botframework - 通过 api 向微软团队中的机器人用户发送消息
- php - 是否可以为我从数据库输出的数据分配一个“名称”?
- javascript - 调整 div 大小时无法让 Google 地图高度自动调整大小
- nginx - 您的连接不是私有的(nginx、bluehost、google cloud 和 cloudflare)
- javascript - 如何进行可重用的 proptype 验证?
- python - 如何使用字符串(或其他类型的元数据)中的逻辑向(PySpark)数据框添加新列?
- javascript - 对如何在 JS 中使用变量感到困惑
- android - 如何在我的代码中插入 CALLBACK 代码
- swift - 如何在 macOS 中将文本添加到分段控件,以便它以纯文本模式显示在工具栏中?
- python - 格式为“%”的错误指令 datetime.strptime