無法通過帶有 WebDriver(Java 驅動)的自定義 XPath在https://cloud.google.com/products/calculator/上找到“實例數”字段我已經嘗試過 xpath: //input[@name = "quantity" and @id="input_52"] 它與 Ctrl + F 配合使用 Chrome 檢查代碼功能時效果很好,但不適用于 WebDriver這是 Idea 中的堆棧跟蹤消息:org.openqa.selenium.NoSuchElementException: no such element: Unable to locate element: {"method":"xpath","selector":"//input[@name = "quantity" and @id="input_52"]"}提前感謝您的幫助
如何在網頁上找到某個網頁元素
慕桂英4014372
2023-04-13 15:26:36