Socket
Socket
Sign inDemoInstall

@serenity-js/web

Package Overview
Dependencies
Maintainers
1
Versions
118
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@serenity-js/web - npm Package Compare versions

Comparing version 3.0.0-rc.42 to 3.0.0-rc.43

8

CHANGELOG.md

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

# [3.0.0-rc.43](https://github.com/serenity-js/serenity-js/compare/v3.0.0-rc.42...v3.0.0-rc.43) (2023-03-10)
**Note:** Version bump only for package @serenity-js/web
# [3.0.0-rc.42](https://github.com/serenity-js/serenity-js/compare/v3.0.0-rc.41...v3.0.0-rc.42) (2023-02-12)

@@ -8,0 +16,0 @@

4

lib/screenplay/abilities/BrowseTheWeb.d.ts

@@ -19,3 +19,3 @@ import { Ability } from '@serenity-js/core';

* To give an {@apilink Actor|actor} an ability to `BrowseTheWeb`, provide the **integration tool-specific implementation**
* via {@apilink Actor.whoCan} in {@apilink Cast.prepare}, or via {@apilink Cast.whereEveryoneCan}.
* via {@apilink Actor.whoCan} in {@apilink Cast.prepare}, or via {@apilink Cast.where}.
*

@@ -75,3 +75,3 @@ * ```ts

* - {@apilink Actor.whoCan}
* - {@apilink Cast.whereEveryoneCan}
* - {@apilink Cast.where}
* - {@apilink Cast.prepare}

@@ -78,0 +78,0 @@ *

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

* To give an {@apilink Actor|actor} an ability to `BrowseTheWeb`, provide the **integration tool-specific implementation**
* via {@apilink Actor.whoCan} in {@apilink Cast.prepare}, or via {@apilink Cast.whereEveryoneCan}.
* via {@apilink Actor.whoCan} in {@apilink Cast.prepare}, or via {@apilink Cast.where}.
*

@@ -77,3 +77,3 @@ * ```ts

* - {@apilink Actor.whoCan}
* - {@apilink Cast.whereEveryoneCan}
* - {@apilink Cast.where}
* - {@apilink Cast.prepare}

@@ -80,0 +80,0 @@ *

@@ -53,3 +53,3 @@ import { Answerable, AnswersQuestions, Interaction, UsesAbilities } from '@serenity-js/core';

*
* @group Interactions
* @group Activities
*/

@@ -56,0 +56,0 @@ export declare class Clear extends PageElementInteraction {

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

*
* @group Interactions
* @group Activities
*/

@@ -58,0 +58,0 @@ class Clear extends PageElementInteraction_1.PageElementInteraction {

@@ -47,3 +47,3 @@ import { Answerable, AnswersQuestions, Interaction, UsesAbilities } from '@serenity-js/core';

*
* @group Interactions
* @group Activities
*/

@@ -50,0 +50,0 @@ export declare class Click extends PageElementInteraction {

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

*
* @group Interactions
* @group Activities
*/

@@ -52,0 +52,0 @@ class Click extends PageElementInteraction_1.PageElementInteraction {

@@ -70,3 +70,3 @@ import { Answerable, AnswersQuestions, Interaction, UsesAbilities } from '@serenity-js/core';

*
* @group Interactions
* @group Activities
*/

@@ -73,0 +73,0 @@ export declare class DoubleClick extends PageElementInteraction {

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

*
* @group Interactions
* @group Activities
*/

@@ -75,0 +75,0 @@ class DoubleClick extends PageElementInteraction_1.PageElementInteraction {

@@ -44,3 +44,3 @@ import { Answerable, AnswersQuestions, Interaction, UsesAbilities } from '@serenity-js/core';

*
* @group Interactions
* @group Activities
*/

@@ -47,0 +47,0 @@ export declare class Enter extends PageElementInteraction {

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

*
* @group Interactions
* @group Activities
*/

@@ -50,0 +50,0 @@ class Enter extends PageElementInteraction_1.PageElementInteraction {

@@ -11,3 +11,3 @@ import { Answerable, AnswersQuestions, CollectsArtifacts, Interaction, UsesAbilities } from '@serenity-js/core';

*
* @group Interactions
* @group Activities
*/

@@ -183,3 +183,3 @@ export declare class ExecuteScript {

*
* @group Interactions
* @group Activities
*/

@@ -186,0 +186,0 @@ export declare abstract class ExecuteScriptWithArguments extends Interaction {

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

*
* @group Interactions
* @group Activities
*/

@@ -196,3 +196,3 @@ class ExecuteScript {

*
* @group Interactions
* @group Activities
*/

@@ -199,0 +199,0 @@ class ExecuteScriptWithArguments extends core_1.Interaction {

@@ -51,3 +51,3 @@ import { Answerable, AnswersQuestions, Interaction, UsesAbilities } from '@serenity-js/core';

*
* @group Interactions
* @group Activities
*/

@@ -54,0 +54,0 @@ export declare class Hover extends PageElementInteraction {

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

*
* @group Interactions
* @group Activities
*/

@@ -56,0 +56,0 @@ class Hover extends PageElementInteraction_1.PageElementInteraction {

@@ -11,3 +11,3 @@ import { Answerable, Interaction } from '@serenity-js/core';

*
* @group Interactions
* @group Activities
*/

@@ -14,0 +14,0 @@ export declare class Navigate {

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

*
* @group Interactions
* @group Activities
*/

@@ -18,0 +18,0 @@ class Navigate {

@@ -10,3 +10,3 @@ import { Answerable, AnswersQuestions, Interaction } from '@serenity-js/core';

*
* @group Interactions
* @group Activities
*/

@@ -13,0 +13,0 @@ export declare abstract class PageElementInteraction extends Interaction {

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

*
* @group Interactions
* @group Activities
*/

@@ -14,0 +14,0 @@ class PageElementInteraction extends core_1.Interaction {

@@ -56,3 +56,3 @@ import { Activity, Answerable, AnswersQuestions, Interaction, UsesAbilities } from '@serenity-js/core';

*
* @group Interactions
* @group Activities
*/

@@ -59,0 +59,0 @@ export declare class Press extends PageElementInteraction {

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

*
* @group Interactions
* @group Activities
*/

@@ -64,0 +64,0 @@ class Press extends PageElementInteraction_1.PageElementInteraction {

@@ -66,3 +66,3 @@ import { Answerable, AnswersQuestions, Interaction, UsesAbilities } from '@serenity-js/core';

*
* @group Interactions
* @group Activities
*/

@@ -69,0 +69,0 @@ export declare class RightClick extends PageElementInteraction {

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

*
* @group Interactions
* @group Activities
*/

@@ -71,0 +71,0 @@ class RightClick extends PageElementInteraction_1.PageElementInteraction {

@@ -48,3 +48,3 @@ import { Answerable, AnswersQuestions, Interaction, UsesAbilities } from '@serenity-js/core';

*
* @group Interactions
* @group Activities
*/

@@ -51,0 +51,0 @@ export declare class Scroll extends Interaction {

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

*
* @group Interactions
* @group Activities
*/

@@ -53,0 +53,0 @@ class Scroll extends core_1.Interaction {

@@ -12,3 +12,3 @@ import { Answerable } from '@serenity-js/core';

*
* @group Interactions
* @group Activities
*/

@@ -15,0 +15,0 @@ export declare class Select {

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

*
* @group Interactions
* @group Activities
*/

@@ -20,0 +20,0 @@ class Select {

@@ -99,3 +99,3 @@ import { Activity, Answerable, AnswersQuestions, Interaction, Task, UsesAbilities } from '@serenity-js/core';

*
* @group Interactions
* @group Activities
*/

@@ -102,0 +102,0 @@ export declare class Switch extends Interaction {

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

*
* @group Interactions
* @group Activities
*/

@@ -104,0 +104,0 @@ class Switch extends core_1.Interaction {

@@ -28,3 +28,3 @@ import { Answerable, AnswersQuestions, CollectsArtifacts, Interaction, UsesAbilities } from '@serenity-js/core';

*
* @group Interactions
* @group Activities
*/

@@ -31,0 +31,0 @@ export declare class TakeScreenshot extends Interaction {

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

*
* @group Interactions
* @group Activities
*/

@@ -36,0 +36,0 @@ class TakeScreenshot extends core_1.Interaction {

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

context = context || document;
const elems = [];
const elements = [];
const rects = element.getClientRects();

@@ -41,4 +41,4 @@ // webdriver clicks on center of the first element's rect (line of text), it might change in future

const y = rect.top + (rect.height / 2);
elems.push(context.elementFromPoint(x, y));
return elems;
elements.push(context.elementFromPoint(x, y));
return elements;
}

@@ -45,0 +45,0 @@ // get overlapping elements

{
"name": "@serenity-js/web",
"version": "3.0.0-rc.42",
"version": "3.0.0-rc.43",
"description": "Serenity/JS Screenplay Pattern APIs for the Web",

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

"dependencies": {
"@serenity-js/assertions": "3.0.0-rc.42",
"@serenity-js/core": "3.0.0-rc.42",
"@serenity-js/assertions": "3.0.0-rc.43",
"@serenity-js/core": "3.0.0-rc.43",
"tiny-types": "^1.19.0"

@@ -61,3 +61,3 @@ },

},
"gitHead": "ebe1ca57bb98f09bc4554f32e87f44a0dbce2c22"
"gitHead": "683d2fc1fd69444369b666d4318da95f8a5951fc"
}
# Serenity/JS
[![Follow Serenity/JS on LinkedIn](https://img.shields.io/badge/Follow-Serenity%2FJS%20-0077B5?logo=linkedin)](https://www.linkedin.com/company/serenity-js)
[![Watch Serenity/JS on YouTube](https://img.shields.io/badge/Watch-@serenity--js-E62117?logo=youtube)](https://www.youtube.com/@serenity-js)
[![Join Serenity/JS Community Chat](https://img.shields.io/badge/Chat-Serenity%2FJS%20Community-FBD30B?logo=matrix)](https://matrix.to/#/#serenity-js:gitter.im)
[![Support Serenity/JS on GitHub](https://img.shields.io/badge/Support-@serenity--js-703EC8?logo=github)](https://matrix.to/#/#serenity-js:gitter.im)
[Serenity/JS](https://serenity-js.org) is a framework designed to make acceptance and regression testing

@@ -13,3 +18,3 @@ of modern full-stack applications faster, more collaborative and easier to scale.

If you have any questions, join us on [Serenity/JS Community Chat](https://gitter.im/serenity-js/Lobby).
If you have any questions, join us on the [Serenity/JS Community Chat](https://matrix.to/#/#serenity-js:gitter.im).

@@ -16,0 +21,0 @@ [![Full-Stack Acceptance Testing with Serenity/JS and the Screenplay Pattern](https://img.youtube.com/vi/djPMf-n93Rw/0.jpg)](https://www.youtube.com/watch?v=djPMf-n93Rw)

@@ -21,3 +21,3 @@ import { Ability } from '@serenity-js/core';

* To give an {@apilink Actor|actor} an ability to `BrowseTheWeb`, provide the **integration tool-specific implementation**
* via {@apilink Actor.whoCan} in {@apilink Cast.prepare}, or via {@apilink Cast.whereEveryoneCan}.
* via {@apilink Actor.whoCan} in {@apilink Cast.prepare}, or via {@apilink Cast.where}.
*

@@ -77,3 +77,3 @@ * ```ts

* - {@apilink Actor.whoCan}
* - {@apilink Cast.whereEveryoneCan}
* - {@apilink Cast.where}
* - {@apilink Cast.prepare}

@@ -80,0 +80,0 @@ *

@@ -55,3 +55,3 @@ import { Answerable, AnswersQuestions, d, Interaction, LogicError, UsesAbilities } from '@serenity-js/core';

*
* @group Interactions
* @group Activities
*/

@@ -58,0 +58,0 @@ export class Clear extends PageElementInteraction {

@@ -49,3 +49,3 @@ import { Answerable, AnswersQuestions, d, Interaction, UsesAbilities } from '@serenity-js/core';

*
* @group Interactions
* @group Activities
*/

@@ -52,0 +52,0 @@ export class Click extends PageElementInteraction {

@@ -72,3 +72,3 @@ import { Answerable, AnswersQuestions, d, Interaction, UsesAbilities } from '@serenity-js/core';

*
* @group Interactions
* @group Activities
*/

@@ -75,0 +75,0 @@ export class DoubleClick extends PageElementInteraction {

@@ -47,3 +47,3 @@ import { Answerable, AnswersQuestions, d, Interaction, UsesAbilities } from '@serenity-js/core';

*
* @group Interactions
* @group Activities
*/

@@ -50,0 +50,0 @@ export class Enter extends PageElementInteraction {

@@ -16,3 +16,3 @@ import { Answerable, AnswersQuestions, CollectsArtifacts, f, Interaction, LogicError, UsesAbilities } from '@serenity-js/core';

*
* @group Interactions
* @group Activities
*/

@@ -204,3 +204,3 @@ export class ExecuteScript {

*
* @group Interactions
* @group Activities
*/

@@ -207,0 +207,0 @@ export abstract class ExecuteScriptWithArguments extends Interaction {

@@ -53,3 +53,3 @@ import { Answerable, AnswersQuestions, d, Interaction, UsesAbilities } from '@serenity-js/core';

*
* @group Interactions
* @group Activities
*/

@@ -56,0 +56,0 @@ export class Hover extends PageElementInteraction {

@@ -14,3 +14,3 @@ import { Answerable, AnswersQuestions, d, Interaction, TestCompromisedError, UsesAbilities } from '@serenity-js/core';

*
* @group Interactions
* @group Activities
*/

@@ -17,0 +17,0 @@ export class Navigate {

@@ -12,3 +12,3 @@ import { Answerable, AnswersQuestions, d, Interaction, LogicError } from '@serenity-js/core';

*
* @group Interactions
* @group Activities
*/

@@ -15,0 +15,0 @@ export abstract class PageElementInteraction extends Interaction {

@@ -60,3 +60,3 @@ import { Activity, Answerable, AnswersQuestions, d, Interaction, Question, UsesAbilities } from '@serenity-js/core';

*
* @group Interactions
* @group Activities
*/

@@ -63,0 +63,0 @@ export class Press extends PageElementInteraction {

@@ -68,3 +68,3 @@ import { Answerable, AnswersQuestions, d, Interaction, UsesAbilities } from '@serenity-js/core';

*
* @group Interactions
* @group Activities
*/

@@ -71,0 +71,0 @@ export class RightClick extends PageElementInteraction {

@@ -50,3 +50,3 @@ import { Answerable, AnswersQuestions, d, Interaction, UsesAbilities } from '@serenity-js/core';

*
* @group Interactions
* @group Activities
*/

@@ -53,0 +53,0 @@ export class Scroll extends Interaction {

@@ -16,3 +16,3 @@ import { Answerable, d } from '@serenity-js/core';

*
* @group Interactions
* @group Activities
*/

@@ -19,0 +19,0 @@ export class Select {

@@ -101,3 +101,3 @@ import { Activity, Actor, Answerable, AnswersQuestions, Interaction, Task, UsesAbilities } from '@serenity-js/core';

*
* @group Interactions
* @group Activities
*/

@@ -104,0 +104,0 @@ export class Switch extends Interaction {

@@ -32,3 +32,3 @@ import { Answerable, AnswersQuestions, CollectsArtifacts, d, Interaction, UsesAbilities } from '@serenity-js/core';

*
* @group Interactions
* @group Activities
*/

@@ -35,0 +35,0 @@ export class TakeScreenshot extends Interaction {

@@ -39,3 +39,3 @@ /* eslint-disable unicorn/no-for-loop,unicorn/consistent-function-scoping */

context = context || document
const elems = []
const elements = []

@@ -47,5 +47,5 @@ const rects = element.getClientRects()

const y = rect.top + (rect.height / 2)
elems.push(context.elementFromPoint(x, y))
elements.push(context.elementFromPoint(x, y))
return elems
return elements
}

@@ -52,0 +52,0 @@

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