Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@serenity-js/playwright

Package Overview
Dependencies
Maintainers
1
Versions
103
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@serenity-js/playwright - npm Package Compare versions

Comparing version 3.9.1 to 3.10.0

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

# [3.10.0](https://github.com/serenity-js/serenity-js/compare/v3.9.1...v3.10.0) (2023-08-23)
### Features
* **web:** chainable `PageElements` ([#1864](https://github.com/serenity-js/serenity-js/issues/1864)) ([4d0c7eb](https://github.com/serenity-js/serenity-js/commit/4d0c7eb97c24fe3ae1eed702773cf3b80f104947))
## [3.9.1](https://github.com/serenity-js/serenity-js/compare/v3.9.0...v3.9.1) (2023-08-18)

@@ -8,0 +19,0 @@

4

lib/screenplay/models/PlaywrightPage.d.ts
/// <reference types="node" />
import { type QuestionAdapter } from '@serenity-js/core';
import type { CorrelationId } from '@serenity-js/core/lib/model';
import type { Cookie, CookieData, PageElement, Selector } from '@serenity-js/web';
import { Key, Page, PageElements } from '@serenity-js/web';
import type { Cookie, CookieData, PageElement, PageElements, Selector } from '@serenity-js/web';
import { Key, Page } from '@serenity-js/web';
import type * as playwright from 'playwright-core';

@@ -7,0 +7,0 @@ import { URL } from 'url';

@@ -33,3 +33,3 @@ "use strict";

locateAll(selector) {
return new web_1.PageElements(new locators_1.PlaywrightLocator(this.rootLocator, selector));
return core_1.List.of(new web_1.PageElementsLocator(new locators_1.PlaywrightLocator(this.rootLocator, selector)));
}

@@ -36,0 +36,0 @@ async navigateTo(destination) {

{
"name": "@serenity-js/playwright",
"version": "3.9.1",
"version": "3.10.0",
"description": "Serenity/JS Screenplay Pattern library for Playwright",

@@ -46,4 +46,4 @@ "author": {

"dependencies": {
"@serenity-js/core": "3.9.1",
"@serenity-js/web": "3.9.1",
"@serenity-js/core": "3.10.0",
"@serenity-js/web": "3.10.0",
"playwright-core": "^1.37.1",

@@ -62,3 +62,3 @@ "tiny-types": "^1.20.0"

},
"gitHead": "237e0291a7eca71e5f5c0777e1f9d637e8622113"
"gitHead": "06ae5d8a702be0be2890e989c120715c32f6578a"
}

@@ -1,6 +0,6 @@

import { LogicError, type QuestionAdapter } from '@serenity-js/core';
import { List, LogicError, type QuestionAdapter } from '@serenity-js/core';
import { asyncMap } from '@serenity-js/core/lib/io';
import type { CorrelationId } from '@serenity-js/core/lib/model';
import type { Cookie, CookieData, PageElement, Selector } from '@serenity-js/web';
import { ByDeepCss, Key, Page, PageElements } from '@serenity-js/web';
import type { Cookie, CookieData, PageElement, PageElements,Selector } from '@serenity-js/web';
import { ByDeepCss, Key, Page, PageElementsLocator } from '@serenity-js/web';
import type * as playwright from 'playwright-core';

@@ -63,6 +63,8 @@ import { URL } from 'url';

locateAll(selector: Selector): PageElements<playwright.Locator> {
return new PageElements(
new PlaywrightLocator(
this.rootLocator,
selector
return List.of(
new PageElementsLocator(
new PlaywrightLocator(
this.rootLocator,
selector
)
)

@@ -69,0 +71,0 @@ );

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc