import { ScreenshotOutput } from '../helpers/afterScreenshot.interfaces' ; import { Methods } from '../methods/methods.interface' ; import { InstanceData } from '../methods/instanceData.interfaces' ; import { Folders } from '../base.interface' ; import drawTabbableOnCanvas from "../clientSideScripts/drawTabbableOnCanvas" ; import saveFullPageScreen from "./saveFullPageScreen" ; import { SaveTabbableOptions } from "./tabbable.interfaces" ; import removeElementFromDom from "../clientSideScripts/removeElementFromDom" ; /**
 * Saves an image of all tab executions
 */ export default async function saveTabbablePage ( methods , instanceData , folders , tag , saveTabbableOptions ) { await methods . executor ( drawTabbableOnCanvas , saveTabbableOptions . wic . tabbableOptions ) ; const fullPageData = await saveFullPageScreen ( methods , instanceData , folders , tag , saveTabbableOptions ) ; await methods . executor ( removeElementFromDom , 'wic-tabbable-canvas' ) ; return fullPageData ; }