Câu 11: CSE: SeU Certified Selenium Engineer with Java
Which statement is FALSE about the following Java code snippet? (Assume driver as WebDriver object and the elements found as clickable elements.) driver.findElements(By.id(‘A’)).get(0).click();
Nội dung câu hỏi
Which statement is FALSE about the following Java code snippet? (Assume driver as WebDriver object and the elements found as clickable elements.) driver.findElements(By.id(‘A’)).get(0).click();
Các lựa chọn
Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.
- A. It would throw ElementNotVisibleException if the first identified element is invisible.
- B. It would throw NoSuchElementException if no element is found. — đáp án hiện tại
- C. It would find and click the first element as per By locator.
- D. It would throw IndexOutOfBoundsException if no element is found.
Cộng đồng
0 bình luận công khai. Tên thành viên được ẩn một phần.
Chưa có bình luận. Mở giao diện tương tác để bắt đầu thảo luận.