Skip to content

Instantly share code, notes, and snippets.

@Tanapat-S
Created January 6, 2020 05:19
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Tanapat-S/2c7eceb0385efaf3099465a175e05a1d to your computer and use it in GitHub Desktop.
Save Tanapat-S/2c7eceb0385efaf3099465a175e05a1d to your computer and use it in GitHub Desktop.
Puppeteer I.amAcceptingPopups()
Puppeteer I.acceptPopup()
Puppeteer I.amCancellingPopups()
Puppeteer I.cancelPopup()
Puppeteer I.seeInPopup(text)
Puppeteer I.grabPopupText()
Puppeteer I.amOnPage(url)
Puppeteer I.resizeWindow(width, height)
Puppeteer I.haveRequestHeaders(customHeaders)
Puppeteer I.moveCursorTo(locator, offsetX=0, offsetY=0)
Puppeteer I.dragAndDrop(srcElement, destElement)
Puppeteer I.refreshPage()
Puppeteer I.scrollPageToTop()
Puppeteer I.scrollPageToBottom()
Puppeteer I.scrollTo(locator, offsetX=0, offsetY=0)
Puppeteer I.seeInTitle(text)
Puppeteer I.grabPageScrollPosition()
Puppeteer I.seeTitleEquals(text)
Puppeteer I.dontSeeInTitle(text)
Puppeteer I.grabTitle()
Puppeteer I.switchToNextTab(num=1)
Puppeteer I.switchToPreviousTab(num=1)
Puppeteer I.closeCurrentTab()
Puppeteer I.closeOtherTabs()
Puppeteer I.openNewTab()
Puppeteer I.grabNumberOfOpenTabs()
Puppeteer I.seeElement(locator)
Puppeteer I.dontSeeElement(locator)
Puppeteer I.seeElementInDOM(locator)
Puppeteer I.dontSeeElementInDOM(locator)
Puppeteer I.click(locator, context=null)
Puppeteer I.clickLink(locator, context=null)
Puppeteer I.handleDownloads(downloadPath='downloads')
Puppeteer I.downloadFile(locator, customName)
Puppeteer I.doubleClick(locator, context=null)
Puppeteer I.rightClick(locator, context=null)
Puppeteer I.checkOption(field, context=null)
Puppeteer I.uncheckOption(field, context=null)
Puppeteer I.seeCheckboxIsChecked(field)
Puppeteer I.dontSeeCheckboxIsChecked(field)
Puppeteer I.pressKeyDown(key)
Puppeteer I.pressKeyUp(key)
Puppeteer I.pressKey(key)
Puppeteer I.fillField(field, value)
Puppeteer I.clearField(field)
Puppeteer I.appendField(field, value)
Puppeteer I.seeInField(field, value)
Puppeteer I.dontSeeInField(field, value)
Puppeteer I.attachFile(locator, pathToFile)
Puppeteer I.selectOption(select, option)
Puppeteer I.grabNumberOfVisibleElements(locator)
Puppeteer I.seeInCurrentUrl(url)
Puppeteer I.dontSeeInCurrentUrl(url)
Puppeteer I.seeCurrentUrlEquals(url)
Puppeteer I.dontSeeCurrentUrlEquals(url)
Puppeteer I.see(text, context=null)
Puppeteer I.seeTextEquals(text, context=null)
Puppeteer I.dontSee(text, context=null)
Puppeteer I.grabSource()
Puppeteer I.grabBrowserLogs()
Puppeteer I.grabCurrentUrl()
Puppeteer I.seeInSource(text)
Puppeteer I.dontSeeInSource(text)
Puppeteer I.seeNumberOfElements(locator, num)
Puppeteer I.seeNumberOfVisibleElements(locator, num)
Puppeteer I.setCookie(cookie)
Puppeteer I.seeCookie(name)
Puppeteer I.dontSeeCookie(name)
Puppeteer I.grabCookie(name)
Puppeteer I.clearCookie(name)
Puppeteer I.executeScript(fn)
Puppeteer I.executeAsyncScript(fn)
Puppeteer I.grabTextFrom(locator)
Puppeteer I.grabValueFrom(locator)
Puppeteer I.grabHTMLFrom(locator)
Puppeteer I.grabCssPropertyFrom(locator, cssProperty)
Puppeteer I.seeCssPropertiesOnElements(locator, cssProperties)
Puppeteer I.seeAttributesOnElements(locator, attributes)
Puppeteer I.dragSlider(locator, offsetX=0)
Puppeteer I.grabAttributeFrom(locator, attr)
Puppeteer I.saveScreenshot(fileName, fullPage)
Puppeteer I.wait(sec)
Puppeteer I.waitForEnabled(locator, sec)
Puppeteer I.waitForValue(field, value, sec)
Puppeteer I.waitNumberOfVisibleElements(locator, num, sec)
Puppeteer I.waitForClickable(locator, waitTimeout)
Puppeteer I.waitForElement(locator, sec)
Puppeteer I.waitForVisible(locator, sec)
Puppeteer I.waitForInvisible(locator, sec)
Puppeteer I.waitToHide(locator, sec)
Puppeteer I.waitInUrl(urlPart, sec=null)
Puppeteer I.waitUrlEquals(urlPart, sec=null)
Puppeteer I.waitForText(text, sec=null, context=null)
Puppeteer I.waitForRequest(urlOrPredicate, sec=null)
Puppeteer I.waitForResponse(urlOrPredicate, sec=null)
Puppeteer I.switchTo(locator)
Puppeteer I.waitForFunction(fn, argsOrSec=null, sec=null)
Puppeteer I.waitForNavigation(opts={})
Puppeteer I.waitUntil(fn, sec=null)
Puppeteer I.waitUntilExists(locator, sec)
Puppeteer I.waitForDetached(locator, sec)
Puppeteer I.grabDataFromPerformanceTiming()
Puppeteer I.grabElementBoundingRect(locator, prop)
Puppeteer I.debug(msg)
Puppeteer I.debugSection(section, msg)
REST I.setRequestTimeout(newTimeout)
REST I.sendGetRequest(url, headers={})
REST I.sendPostRequest(url, payload={}, headers={})
REST I.sendPatchRequest(url, payload, headers={})
REST I.sendPutRequest(url, payload={}, headers={})
REST I.sendDeleteRequest(url, headers={})
REST I.debug(msg)
REST I.debugSection(section, msg)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment