【发布时间】:2023-04-01 22:16:01
【问题描述】:
请找到我使用的附加屏幕截图和代码。
driver.switchTo().frame(driver.findElement(By.xpath("//iframe[contains(@title,'部署数据集')]")));
<div class="slds-template_iframe slds-card" force-aloha-page_aloha-page=""><iframe height="100%" width="100%" scrolling="yes" allowtransparency="true" id="vfFrameId_1536136086228" name="vfFrameId_1536136086228" allowfullscreen="true" force-aloha-page_aloha-page="" allow="geolocation *; microphone *; camera *" title="Deploy Data Set"></iframe></div>
【问题讨论】:
-
@theGuy 你能调查一下这个问题吗?
-
你能说清楚你想要什么吗?
-
您需要添加隐藏文本输入并在选择添加时使用 jquery 或 javascript,并在隐藏输入中使用逗号分隔。希望对你有帮助
-
@SamDeveloper 你能提供我需要做的代码吗,因为我不知道 javascript
-
如果顺序相同,您可以 selectByIndex 。
标签: javascript selenium selenium-webdriver selenium-chromedriver domxpath