Open Jacobvu84 opened 6 years ago
Đây là đáp án của em. :D lâu ko làm chắc sai hết
@giangnd2508 : Kết quả của em là 15/20, Các câu sai là 5.7.13.18.19
Đáp án của em: 1A; 2A; 3C; 4A; 5B; 6B; 7A; 8A; 9C; 10A; 11A; 12 E; 13C; 14A; 15A; 16D; 17D; 18A; 19C; 20E
@wizardsconan Kết quả của em là 16/20 Các câu sai là 1.4.8.15
Kiểm tra kiến thức của học sinh về Selenium Web Webriver API
Explain how you can login into any site if it’s showing any authentication popup for password and username?
What is the difference b/w close() and quit()?
a. True b. False
a. FirefoxDriver is a class. It implements all the methods of FirefoxActions interface. b. FirefoxDriver is a class. It implements all the methods of BrowserDriver interface. c. FirefoxDriver is a class. It implements all the methods of WebDriver interface. d. FirefoxDriver is a class. It implements all the methods of WebDriverFirefox interface.
WebElement link = element(getWebElement(linkText)); withAction().moveToElement(link) .contextClick(link) .sendKeys(Keys.ARROW_DOWN) .sendKeys(Keys.ARROW_DOWN)
.sendKeys(Keys.ENTER)
.perform();
a. Open link in a new tab b. Open link in a new private Window c. Open link in a new Window
a. selectText() b. getText() c. getElementText() d. getText(element)
a. True b. False
driver.findElement(By.cssSelector("#name"));
a. Output is Name 1 b. Output is Name 2 c. CSS selector syntax is incorrect
WebDriverWait wait = new WebDriverWait(driver, 30); wait.until(ExpectedConditions.presenceOfElementLocated(by));
a. changeFocus() b. setFocus() c. switchTo() d. changeTo(
a. True b. False
System.out.println(driver.getTitle()); System.out.println(driver.findElement(By.tagName("title")).getText());
a. True b. False
a. type() b. selenium.type() c. driver.type() d. sendKeys() e. sendKeys("text")
a. css = li.contains("Opera") b. css = ul.li(4) c. css = ul > li:nth-of-type(4) d. css = ul > li:nth-of-type(3) e. css = ul.li:nth-child(4)
a. True b. False
a. navigate.forward() b. Navigate.forward() c. navigate().forward() d. Navigate.forward e. navigate_forward()
a. selectByIndex() b. selectByVisibleText() c. selectByValue() d. all above e. none of above
a. goToUrl("url") b. navigate.to("url") c. getUrl("url") d. get("url")
driver.findElement(By.xpath("//table/tr[1]/td")).getText();
a. The above statement returns 1 b. The above statement returns 3 c. The xpath query is incorrect d. webdriver statement is incorrect
a. driver.getCountOfElements() b. driver.findElement(By.id("search")).getCount() c. driver.findElements(By.id("search")).size() d. driver.findElements(By.id("search")).length()
a. dismiss() b. accept() c. getText() d. sendKeys(String stringToSend) e. All of above f. None of above