【发布时间】:2017-03-21 06:14:46
【问题描述】:
如果我在 FireFox 上使用“检查元素”,我会看到:
<span class="stock-number-value ng-binding">17109 </span>
当我使用 driver.getSource() 时,17109 被“vehicle.attributes.stockNumber”替换。
我的主要目标是使用驱动程序获取 vehicle.attributes.stockNumber 存储的任何值,但我不知道如何使用 Selenium 获取该变量的内容。
【问题讨论】:
标签: java html selenium selenium-webdriver