9.0.2 • Published 5 months ago

nostromo v9.0.2

Weekly downloads
34
License
MIT
Repository
-
Last release
5 months ago

nostromo

(work in progress)

Testrunner API

type WaitOptions = { timeout?: number, initialDelay?: number }

assert(): Promise<void>

Automatic screenshot assert and diff.

click(selector: string): Promise<void>
delay(ms: number): Promise<void>
execFunction(() => any, ...args: any[]): Promise<void>
focus(selector: string): Promise<void>
getValue(selector: string): Promise<string>
setValue(selector: string, value: string): Promise<void>
setFileInput(fileInputSelector: string, filePath: string[], options?: { waitForVisible?: boolean, checkSelectorType?: boolean }): Promise<void>

Throws error if fileInputSelector is not a file input.

  • checkSelectorType: checks if selector is a file input. Default: true
waitForVisible(selector: string, opts?: WaitOptions): Promise<void>
waitWhileVisible(selector: string, opts?: WaitOptions): Promise<void>
isVisible(selector: string): Promise<boolean>
scroll(selector: string, scrollTop: number): Promise<void>
scrollTo(selector: string): Promise<void>
pressKey(keyCode: string): Promise<void>

See the puppeteer API for keycodes.

mouseover(selector: string): Promise<void>
9.0.2

5 months ago

9.0.0

6 months ago

8.1.0

1 year ago

8.2.0

1 year ago

8.1.1

1 year ago

8.0.0

2 years ago

7.1.0

2 years ago

6.3.0

2 years ago

6.2.0

2 years ago

6.3.1

2 years ago

7.0.0

2 years ago

6.1.0

3 years ago

6.0.3

3 years ago

6.0.2

3 years ago

6.0.1

3 years ago

6.0.0

3 years ago

5.10.0

3 years ago

5.9.0

3 years ago

5.8.0

3 years ago

5.7.0

3 years ago

5.6.0

3 years ago

5.5.0

3 years ago

5.4.0

3 years ago

5.2.2

3 years ago

4.6.0

3 years ago

4.4.4

3 years ago

4.4.3

3 years ago

4.3.3

3 years ago

4.3.2

3 years ago

4.3.1

3 years ago

4.2.1

3 years ago

4.2.0

3 years ago

4.1.0

3 years ago

3.6.0

4 years ago

3.5.2

4 years ago

3.5.1

4 years ago

3.5.0

4 years ago

3.4.0

4 years ago

4.0.0

4 years ago

3.3.0

4 years ago

3.2.0

4 years ago

3.1.1

4 years ago

3.1.0

5 years ago

3.0.0

5 years ago

1.3.0-beta

6 years ago