This site uses cookies own and third. If you continue to browse consider to accept the use of cookies. OK More Info.

Autoc0de 2.0 (Web) - Documentación de métodos

  • 1 Replies
  • 479 Views

0 Members and 1 Guest are viewing this topic.

Offline DarkDante

  • *
  • Underc0der
  • Posts: 2
  • Actividad:
    0%
  • Country: 00
  • Reputación 1
    • View Profile
    • Email

Autoc0de 2.0 (Web) - Documentación de métodos

  • on: June 01, 2022, 04:24:03 pm
Buenas, en este post dejo detalladas todas las funciónes que podemos encontrar dentro de autoc0de 2.0. Para que sean transcriptas a la Web Oficial de autoc0de (You are not allowed to view links. Register or Login)

PD1: El MasterPage de Autoc0de siempre se esta puliendo y mejorando. Todos los metodos y funciónes que se encuentran ahora funciona bien, pero seguramente seran mejoradas en un futuro, además de que se agregarán mas funcionalidades.

PD2: Dentro de la MasterPage hay muchos metodos repetidos o privados. Esto es porque se aplica polimorfismo para poder utilizar una función reciviendo mas o menos parametros.

PD3: En la web. Hay que dividir la documentación por secciónes: Acciones, Esperas, Verificaciónes

MasterPage.class

Acciónes:

auto_openURLInBrowser()  -> Open the URL set in the POM file, in the selected Browser
auto_getCurrentUrl() -> Get the current URL in the active browser
auto_getPageTitle() -> Get the current Title of the actual web
auto_getWebElement(String elementPath, String ... elementValue) -> Create an object of type WebElement starting from a locator
auto_getWebElements(String elementPath, String ... elementValue) -> Create a list of object of type WebElement starting from a locator
auto_setClickElement(String elementPath, String ... elementValue) -> Click an element
auto_setClickElementActions(String elementPath, String ... elementValue) -> Click an element using Actions
auto_setClickElementAndHold(String elementPath, String ... elementValue) -> Click and hold an element
auto_setClickElementAndCheck(String elementPath, String ... elementValue) -> Click and check an element
auto_setTextToInput(String elementPath, String value, String ... elementValue) -> Set a string of text to an element
auto_setTextToInputActions(String elementPath, String value, String ... elementValue) -> Set a string of text to an element using Actions
auto_setTextToInputWithoutClear(String elementPath, String value, String ... elementValue) -> Set a string of text to an element without clear the field
auto_setTextToInputWithoutClick(String elementPath, String value, String ... elementValue) -> Set a string of text to an element without click the field
auto_clearInput(String elementPath, String ... elementValue) -> Only clear the field
auto_setTextToInputRaw(String elementPath, String text, String ... elementValue) -> Set text without click, clear or another thing
auto_getElementText(String elementPath, String ... elementValue) -> Obtain the text of an element
auto_getInputValue(String elementPath, String ... elementValue) -> Obtain the value of an Input
auto_selectCheckbox(String elementPath, String ... elementValue) -> Check an Checkbox
auto_deselectCheckbox(String elementPath, String ... elementValue) -> Uncheck an Checkbox
auto_setTextToClipboard(String value) -> Save text to clipboard
auto_HoverElement(String elementPath, String ... elementValue) -> Do hover an element
auto_scrollToElement(String elementPath, String ... elementValue) -> Stroll to element
auto_sendKeyPressedToElement(String elementPath, Keys key, String ... elementValue) -> Send an spesific Key presed to element
auto_scrollToElementJSByCoordinates(int x, int y) -> Scroll to spesific coordinates in the browser
auto_scrollUpJS() -> Generic Scroll Up for 300px in the browser
auto_scrollDownJS()  -> Generic Scroll down for -300px in the browser
auto_makeElementVisible(String elementPath, String ... elementValue) -> Change the visibility of one element
auto_dragAndDrop(String elementFrom, String elementTo, String ... elementValue) -> Drag and drop an element
auto_switchToIframe(String elementPath, String ... elementValue) -> Switch to the spesific Iframe
auto_switchToDefaultIframe() -> Return to the main Iframe

Esperas (Waits):

auto_getWait() -> Obtain the defailt wait
auto_getFluentWait() -> Obtain the default Fluent Wait
auto_getWaitInMiliseconds -> Wait a spesific time in miliseconds
auto_removeWaits() ->  Remove all waits created
auto_waitForPageToLoad() -> Wait for the current web site load complete
auto_waitForElementDisappears(String elementPath, String ... elementValue) -> Wait to an elemend Desappears
auto_waitForElementVisibility(String elementPath, String ... elementValue) -> Wait an element to be visible
auto_waitForElementToHaveText(String elementPath, String text, String ... elementValue) -> Wait until an element have an spesific time
auto_waitForElementsVisibilities(String elementPath, String ... elementValue) -> Wait for the visibilties of a list of elements
auto_waitElementClickable(String elementPath, String ... elementValue) -> Wait the element to be clickeable

Verificaciónes:

auto_checkPageTitleContains(String title) -> Check the title of the web contains an spesific text
auto_checkPageUrlContains(String fraction) ->  Check the url of the web contains an spesific text
auto_isElementPresent(String elementPath, String ... elementValue) -> Check if the current element is present
auto_isElementVisible(String elementPath, String ... elementValue) -> Check if the current element is visible
auto_isElementVisibleWithoutWait(WebElement element) -> Check if the current element is present without wait
auto_isInputElementEmpty(String elementPath, String ... elementValue) Check if the current element is empty
auto_isElementEnabled(WebElement element) -> Check if the current element is enabled
auto_getAttribute(String elementPath, String attribute, String ... elementValue) Obtain the spesific attribute of an element
« Last Edit: June 01, 2022, 04:26:36 pm by DarkDante »

Offline Nesrak

  • *
  • Underc0der
  • Posts: 6
  • Actividad:
    23.33%
  • Reputación 0
    • View Profile

Re: Autoc0de 2.0 (Web) - Documentación de métodos

  • on: August 10, 2022, 11:25:43 pm
Lo tan esperado por fin llego, Gracias loco muy buenos updates