Câu 8: CSE: SeU Certified Selenium Engineer with Java
Given the following HTML snippet for a drop-down list: (Assume driver as WebDriver.) AND the following Java code for this drop-down identification: Which of the following would be the NEXT code instructions to select the drop-down option with text “Audi”?
Nội dung câu hỏi
Given the following HTML snippet for a drop-down list: (Assume driver as WebDriver.) AND the following Java code for this drop-down identification: Which of the following would be the NEXT code instructions to select the drop-down option with text “Audi”?
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. Select cars = new Select(elem);cars.findElement(by).selectByVisbileText(‘Audi’);
- B. Select cars = new Select(elem);cars.selectByVisbileText(‘Audi’); — đáp án hiện tại
- C. elem.sendKeys(“Audi”);
- D. elem.click();driver.findElement(by).click();
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.