• Barajar
    Activar
    Desactivar
  • Alphabetizar
    Activar
    Desactivar
  • Frente Primero
    Activar
    Desactivar
  • Ambos lados
    Activar
    Desactivar
  • Leer
    Activar
    Desactivar
Leyendo...
Frente

Cómo estudiar sus tarjetas

Teclas de Derecha/Izquierda: Navegar entre tarjetas.tecla derechatecla izquierda

Teclas Arriba/Abajo: Colvea la carta entre frente y dorso.tecla abajotecla arriba

Tecla H: Muestra pista (3er lado).tecla h

Tecla N: Lea el texto en voz.tecla n

image

Boton play

image

Boton play

image

Progreso

1/37

Click para voltear

37 Cartas en este set

  • Frente
  • Atrás
driver = webdriver.Firefox()
Declared driver as firefox
driver.get("https://www.google.com/maps")
open web page
element = driver.find_element(By.ID/By.NAME/By.XPATH/By.CLASS_NAME/By.CSS_SELECTOR/NAME, "passwd-id")
find element
element.send_keys("some text")
Introduce some text
action = ActionChains(driver)
Declare an action in the driver
action.click(on_element = element2)
Declare the action click
action.perform()
Execute the action
action.context_click(on_element = element4)
Declare the action right click
action.double_click(on_element = element)
Declare the action double click
action.drag_and_drop(source_element, target_element)
Declare the action drag and drop
action.key_down(Keys.CONTROL).send_keys('C').perform()
Sends a key press, without releasing it.
action.key_up(Keys.CONTROL).perform()
Releases a modifier key.
action.move_by_offset(200, 200)
Moving the mouse to an offset from current mouse position.
action.move_to_element_with_offset(element, 100, 200).click().perform()
Moving the mouse to an offset from current mouse position and click
action.pause(1000)
Pause all inputs for the specified duration in seconds
action.release(on_element = element)
Releasing a held mouse button on an element.
action.reset_actions()
Clears actions that are already stored locally and on the remote end
driver.back()
Goes one step backward in the browser history.
driver.close()
Closes the current window.
driver.forward()
Goes one step forward in the browser history.
driver.fullscreen_window()
Invokes the window manager-specific ‘full screen’ operation
driver.maximize_window()
Maximizes the current window that webdriver is using
driver.minimize_window()
Invokes the window manager-specific ‘minimize’ operation
driver.quit()
Quits the driver and closes every associated window.
driver.refresh()
Refreshes the current page.
driver.set_window_position(1024, 1024, windowHandle ='current')
Sets the x, y position of the current window. (window.moveTo)
driver.set_window_rect(x = 100, y = 200, width = 1024, height = 700)
Sets the x, y coordinates of the window as well as height and width of the current window.
print(driver.page_source)
Gets the source of the current page.
print(element.is_selected())
is used to check if the checkbox is selected or not. It returns a boolean value True or False.
print(element.is_displayed())
is used to check if element it visible to user or not. It returns a boolean value True or False.
print(element.is_enabled())
is used to check if element is enabled or not. It returns a boolean value True or False.
print(element.get_attribute('href'))
is used to get attributes of an element, such as getting href attribute of anchor tag.
element.clear()
is used to clear text of any field, such as input field of a form or even to anchor tag paragraph, etc.
print(element.location)
is used to get location of element in renderable canvas(X,Y).
element.size
is used to get size of current element(height, width).
print(element.tag_name)
used to get name of tag you are referring to.
print(element.rect)
used to get a dictionary with the size and location of the element(height, width, x, y).