Files
alighasami 3d5eaf9445
Security: Sync from Public / sync-from-public (push) Has been cancelled
Test: Benchmark Nightly / build (push) Has been cancelled
Test: Benchmark Nightly / Notify Cats on failure (push) Has been cancelled
CI: Python / Checks (push) Has been cancelled
Test: Evals Python / Workflow Comparison Python (push) Has been cancelled
Util: Check Docs URLs / check-docs-urls (push) Has been cancelled
Test: Visual Storybook / Cloudflare Pages (push) Has been cancelled
Test: E2E Performance / build-and-test-performance (push) Has been cancelled
Test: Workflows Nightly / Run Workflow Tests (push) Has been cancelled
Util: Cleanup CI Docker Images / Delete stale CI images (push) Has been cancelled
Test: Benchmark Destroy Env / build (push) Has been cancelled
Util: Update Node Popularity / update-popularity (push) Has been cancelled
Test: E2E Coverage Weekly / Coverage Tests (push) Has been cancelled
first commit
2026-03-17 16:22:57 +03:30

90 lines
2.1 KiB
TypeScript

import type { INodeProperties } from 'n8n-workflow';
import * as close from './close.operation';
import * as create from './create.operation';
import * as getLiveView from './getLiveView.operation';
import * as list from './list.operation';
import * as load from './load.operation';
import * as takeScreenshot from './takeScreenshot.operation';
import { sessionIdField, windowIdField } from '../common/fields';
export { create, close, takeScreenshot, load, list, getLiveView };
export const description: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
type: 'options',
noDataExpression: true,
typeOptions: {
sortable: false,
},
displayOptions: {
show: {
resource: ['window'],
},
},
options: [
{
name: 'Close Window',
value: 'close',
description: 'Close a window inside a session',
action: 'Close a window',
},
{
name: 'Create a New Browser Window',
value: 'create',
description: 'Create a new browser window inside a session. Can load a URL when created.',
action: 'Create a window',
},
{
name: 'Get Live View',
value: 'getLiveView',
description: 'Get information about a browser window, including the live view URL',
action: 'Get live view',
},
{
name: 'List Windows',
value: 'list',
description: 'List all browser windows in a session',
action: 'List windows',
},
{
name: 'Load URL',
value: 'load',
description: 'Load a URL in an existing window',
action: 'Load a page',
},
{
name: 'Take Screenshot',
value: 'takeScreenshot',
description: 'Take a screenshot of the current window',
action: 'Take screenshot',
},
],
default: 'create',
},
{
...sessionIdField,
displayOptions: {
show: {
resource: ['window'],
},
},
},
{
...windowIdField,
displayOptions: {
show: {
resource: ['window'],
operation: ['close', 'takeScreenshot', 'load', 'getLiveView'],
},
},
},
...create.description,
...list.description,
...getLiveView.description,
...load.description,
...takeScreenshot.description,
];