Selenium wait types?
A. Hard wait
B. Implicit wait
C. Explicit wait
D. Both B & C
Answer: D-
Implicit wait applies to:
A. Only one element
B. All elements
C. Only find_elements
D. Only find_element
Answer: B -
To use WebDriverWait:
A. Wait
B. WebDriverWait
C. WaitDriver
Answer: B -
Explicit wait is applied to:
A. Single condition
B. Entire session
C. All locators
D. Browser
Answer: A -
Condition for element visibility:
A. visibility_of()
B. visible()
C. element_to_be_visible()
D. visibility_of_element_located()
Answer: D -
Implicit wait command:
A. driver.imp_wait(10)
B. driver.implicitly_wait(10)
C. driver.wait(10)
D. driver.default_wait(10)
Answer: B -
Explicit wait belongs to which module?
A. selenium.support.expected_conditions
B. selenium.webdriver.support.expected_conditions
C. selenium.ec
D. selenium.conditions
Answer: B -
Fluent wait is available in Python?
A. Yes
B. No
Answer: B -
TimeoutException occurs when:
A. Element found early
B. Browser closed
C. Condition not met within time
D. Invalid locator
Answer: C -
Sleep is:
A. Hard wait
B. Soft wait
C. Explicit wait
D. Implicit wait
Answer: A -
Command for sleep:
A. time.sleep()
B. sleep()
C. selenium.sleep()
D. wait.sleep()
Answer: A -
WebDriverWait uses:
A. Polling
B. Hard wait
C. Page refresh
D. Reopen browser
Answer: A -
Default polling time of WebDriverWait?
A. 50 ms
B. 100 ms
C. 500 ms
D. 0 ms
Answer: C -
Exception ignored in wait?
A. NoSuchElementException
B. TimeoutException
C. ElementClickInterceptedException
D. WebDriverException
Answer: A -
To wait until element is clickable:
A. clickable()
B. element_to_be_clickable()
C. wait_click()
D. click_ready()
Answer: B -
To wait for URL:
A. url_is
B. url_contains
C. Both A & B
D. url_match
Answer: C -
Explicit wait parameter is:
A. time only
B. condition only
C. both time and condition
Answer: C -
Selenium waits work only on:
A. Browser events
B. JavaScript events
C. Web elements
D. Windows apps
Answer: C -
WebDriverWait returns:
A. Boolean
B. Element
C. Time
D. URL
Answer: B -
Wait for element presence:
A. presence_of_element_located
B. find_element
C. availability()
D. locate()
Answer: A
No comments:
Post a Comment