Questions about the Serenity/JS acceptance testing library, as well as the JavaScript and TypeScript implementation of the Screenplay Pattern.
Questions tagged [serenity-js]
73 questions
0
votes
1 answer
How to update selenium-server-standalone to specific version for protractor and node-js?
How to update selenium-server-standalone to specific version ?
As in my project I want version 3.0.1 but when I ran
webdriver-manager update
It downloads "3.141.59" version which is not compatible
for my project.

Pritam Maske
- 2,670
- 2
- 22
- 29
0
votes
1 answer
How to assert that web element is visible on the screen using serenity-js?
I am using Serenity-js BDD framework with screenplay pattern in my project. Here I am not able to perform assertion for visibility of an element on web-page using Ensure class's "that" method.
Code :
Page Element…

Pritam Maske
- 2,670
- 2
- 22
- 29
0
votes
1 answer
End to end test with serenity-js , cumber ,protractor and jasmine
I am new to serenity-js and trying to implement it for end to end test case for an angular application.
My team has already written the unit test case using jasmine. As I know, serenity-js don't support jasmine. what should I do to make it work?…

Chandresh Mishra
- 1,081
- 3
- 24
- 45
0
votes
1 answer
CSRF token validation failed, How to fix using serenity rest assured framework?
I am using serenity rest assured framework, I do the below steps.
1) Using GET request am able to fetch the CSRF token in the response header.
2) Then I try to use the same fetched CSRF token to POST another request and I receive "CSRF token…

user2568335
- 1
- 2
0
votes
1 answer
Do we need to have the Browser installed on GUI less RedHat Linux m/c when we are running headless tests using XVFB?
Since we are facing problems with running headless Serenity tests using the installed Firefox browser on a Jenkins Server running on RedHat Linux machine, we installed XVFB to run the tests.
Our preferred browser to test is with Chrome, not Firefox.…

PraNuta
- 629
- 3
- 12
- 33
0
votes
1 answer
Is it enough to mention which browser you want to run the tests with in serenity.properties file?
Is it enough to mention which browser you want to run the tests with in serenity.properties file ?
Like...
Chrome Browser Testing
webdriver.driver=chrome
headless.mode = true
drivers.windows.webdriver.chrome.driver =…

PraNuta
- 629
- 3
- 12
- 33
0
votes
1 answer
How to navigate through a paginated list until find a text with Serenity-JS?
I need to assert that an element I created was added to a list, but it is added at the end of it and it is paginated.
I'm thinking of navigating through each page by calling another task this way:
export class CheckItem implements Task {
static…

Paolo Carrasco
- 59
- 1
- 1
- 10
0
votes
1 answer
How to expand the Start task with new scenarios
I've just learned about serenity-js and am giving it a go. I'm following the tutorial and noticed the follow example:
james.attemptsTo(
Start.withAnEmptyTodoList(),
AddATodoItem.called('Buy some milk')
)
The task for Start:
export class…

Michael
- 1,201
- 1
- 8
- 15
0
votes
1 answer
A feature file having two individual scenarios having weird web locator problems
I have a feature file with having two scenarios: one for login to website, another one doing some actions on the logged in page.
If I arrange the feature file with just one scenario, it is working fine, especially line highlighted in the first…

PraNuta
- 629
- 3
- 12
- 33
0
votes
1 answer
Referring to John's Serenity BDD book, can a @Test annotation encompass a complete scenario, as part of running SerenityRunner.class?
I am referring to John's Serenity bdd book @ https://serenity-bdd.github.io/theserenitybook/latest/step-libraries.html. Very in the beginning, John seem to be enclosing a set of @given @when @then step definitions inside a method, which is annotated…

PraNuta
- 629
- 3
- 12
- 33
0
votes
1 answer
Serenity: How to differentiate the reports based on the platform used?
We are using serenity reports for both platforms to run automation scripts but not sure how to differentiate the features or scenarios in the reports to say which platform is belonged to. I have used tags still no use as those tags are shown for…

vamc
- 125
- 1
- 2
- 13
0
votes
0 answers
How do i Upload a file using serenity screenplay pattern
I'm working on serenity screenplay pattern.
I need to upload a file to a textbox on a webpage but I got the following error:
"TargettedAction invalid element state: Element must be user-editable
in order to clear it."
This is where I am getting…

seyi ojo
- 23
- 6
0
votes
1 answer
Need an example of how to do a button click on serenity-js
I am really new to serenity-js and Protractor. I followed the 'https://github.com/serenity-js/seed-cucumber/tree/master/features' to get familiar with serenity-js. Can someone give me an example of how to do a button click?
E.g click on 'TRY THE NEW…

Wicky
- 118
- 2
- 13
0
votes
1 answer
How do I assert the value of an input field with chai/chai-smoothie?
Thanks for chai-smoothie!
How do I assert the value of an input field with chai/chai-smoothie?
Given that getText() is always empty, and we should use element.getAttribute('value') (see: How to getText on an input in protractor)
I'd like to be able…

Rod McCutcheon
- 201
- 4
- 21
0
votes
1 answer
Serenity-JS, step function timed out
I'm in my first steps with Serenity and I've been stuck for 2 days with this problem.
I've got:
navigate to the login page
write the username
write the password
click the login button
and then, in the Step where the web change from login page to…

Jose
- 1