mirror of
https://github.com/OliveTin/OliveTin
synced 2025-12-14 18:15:37 +00:00
* cicd: More test coverage that would have caught recent issues * bugfix: test flake * bugfix: test flake * cicd: Reduce test flake * cicd: more test coverage * depbump: testing packages
13 lines
365 B
JavaScript
13 lines
365 B
JavaScript
import { By } from 'selenium-webdriver'
|
|
import fs from 'fs'
|
|
|
|
export async function getActionButtons (webdriver) {
|
|
return await webdriver.findElement(By.id('contentActions')).findElements(By.tagName('button'))
|
|
}
|
|
|
|
export function takeScreenshot (webdriver) {
|
|
return webdriver.takeScreenshot().then((img) => {
|
|
fs.writeFileSync('out.png', img, 'base64')
|
|
})
|
|
}
|