driver = webdriver.Chrome()
driver.maximize_window()
driver.find_element().clear()
driver.find_element().send_keys("xx")
driver.find_element().click()
driver.quit()
driver.back()
driver.refresh()
driver.forward()
driver.current_url
driver.page_source
size = driver.find_element(By.ID, "c").size
text = driver.find_element(By.ID, "c").text
href = driver.find_element(By.ID, "c").get_attribute("href")
is_displayed = driver.find_element(By.ID, "cc").is_displayed()
is_enabled = driver.find_element(By.ID, "cc").is_enabled()
driver.find_element(By.ID, "cc")
driver.find_element(By.XPATH, '//*[@id="cc"]/fieldset/button')
driver.find_element(By.NAME, 'email')
driver.switch_to.frame(ele)
driver.switch_to.default_content()
btn1 = driver.switch_to.alert
btn1.text
btn1.accept()
btn1.dismiss()
main_handle = driver.current_window_handle
driver.implicitly_wait(10)
|