import { Device } from "@siteimprove/alfa-device" ; import { Document , Node } from "@siteimprove/alfa-dom" ; import { Request , Response } from "@siteimprove/alfa-http" ; import { Page } from "@siteimprove/alfa-web" ; import * as dom from "@siteimprove/alfa-dom/native" ; /**
 *  https public export interface WebElement { /**
     *  https [ "element-6066-11e4-a52e-4f735466cecf" ] ? : string ; } public export namespace WebElement { export async function toPage ( webElement , browser ) { const nodeJSON = await browser . execute ( dom . Native . fromNode , webElement as any ) ; return Page . of ( Request . empty ( ) , Response . empty ( ) , Document . of ( [ Node . from ( nodeJSON ) ] ) , Device . standard ( ) ) ; } }