Câu 10: CSE: SeU Certified Selenium Engineer with Java
A web application lists download links for different files as an unordered list, with dynamically generated IDs. Which of the following is NOT a valid identification strategy for locating the element that corresponds to “File2” with the findElement call?
Nội dung câu hỏi
A web application lists download links for different files as an unordered list, with dynamically generated IDs. Which of the following is NOT a valid identification strategy for locating the element that corresponds to “File2” with the findElement call?
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. By.xpath(“//*[text() = ‘File2’]”)
- B. By.cssSelector(“a[href*=‘/?k=file2’]”)
- C. By.id(“89xsgf-56ddf”)
- D. By.partialLinkText(“File”) — đáp án hiện tại
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.