Câu 5: CSE: SeU Certified Selenium Engineer with Java
What is the outcome of the following Java code snippet for Selenium? (Assume that userName is a text box WebElement and driver is a WebDriver object.)JavaScriptExecutor js = (JavaScriptExecutor) driver;js.executeScript(“arguments[0].value=‘test’”, userName);
Nội dung câu hỏi
What is the outcome of the following Java code snippet for Selenium? (Assume that userName is a text box WebElement and driver is a WebDriver object.)JavaScriptExecutor js = (JavaScriptExecutor) driver;js.executeScript(“arguments[0].value=‘test’”, userName);
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. Value of userName text field is set to ‘test’. — đáp án hiện tại
- B. Value of userName text field remains unchanged.
- C. An exception is thrown.
- D. Value of userName text field is matched with ‘test’.
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.