Questions tagged [javascript]
JavaScript is a dialect of the standardized ECMAScript programming language, primarily used for scripting web-pages.
315
questions
1
vote
2
answers
35
views
Do you disable JavaScript as part of your testing? If so, how do you know whether something is buggy?
I sometimes disable JavaScript to see how a website behaves without it. I'm often surprised how much the content display relies on it. But I'm unsure whether it's a bug. I read that almost everybody ...
0
votes
1
answer
40
views
How to repeat the same test with Selenium Webdriver without opening a new browser instance each time?
I am using Selenium Webdriver on Node.js with Cucumber.js.
I want to run the same test on multiple pages. In this case just checking for 404s in my footer.
My Cucumber .feature file looks like:
...
0
votes
0
answers
6
views
Getting javascript is disabled after launching the application
Whenever I launch our application, in the Welcome.do page I am getting the javascript disabled message however when I check the about:config, I can see that the configuration is set to javascript....
0
votes
0
answers
80
views
How do I properly dismiss an alert in JavaScript with Selenium Webdriver?
I am using Cucumber.js and Selenium Webdriver on Node.js.
I am testing a page that has an alert pop-up when the page loads - it asks for permission to use the user's location which I have disabled in ...
0
votes
1
answer
128
views
What is the best way to set up multiple tests on one webpage with Selenium Webdriver and Cucumber JS?
I am new to automated testing, Selenium and Cucumber.JS and am trying to set it up in Node.JS to run several tests on my website.
I have gotten single scenarios/test working fine, but I am a bit ...
-1
votes
1
answer
556
views
getting this error AssertionError: expected undefined to deeply equal 'open_group'
const jsonData = pm.response.json();
pm.test("Status code is 200", function () {
pm.response.to.have.status(200);
})
//each month on the payment day, next_cycle is updated
pm.test("...
0
votes
0
answers
560
views
How to send a multipart/form-data request in cypress which having xml file
I'm having a POST request which have multipart/form-data content and data in xml like below
userlist: "
<user id="[email protected]" password="Password1" path="sysadm/...
0
votes
1
answer
23
views
Visual representation of an element I am clicking in VS Code
I think remember reading this somewhere but cannot remember if it is true or not. Is there a VS Code extension that will let you visually see on the web page (or in VS Code) where exactly the mouse....
0
votes
1
answer
586
views
How to reset app between tests in WDIO?
I'm currently trying to get WebDriverIO working with Appium and Mocha (BDD) towards an Android device. Previously when I've worked with Mocha the behavior has been that testcases are isolated from ...
-1
votes
1
answer
2k
views
Cypress API testing : How to login and then use the auth token in another test?
How can I access the token generated from 1st it block to 2nd it block.
here is the code:
1st it block
it('Login using new user', () => {
cy.api({
method: "POST",
...
1
vote
0
answers
500
views
How can we validate the response body using Tests in postman
Request Body
{
"StudentInfo":{
"Student":[
{
"StudentId":"001"
}
}
}
Response Body
{
"Studentinfo":{
"Student":[
{
"StudentId":&...
0
votes
1
answer
115
views
Will Selenium Webdriver become less popular in coming years? [closed]
Lot of Automation engineers have shifted to new Web automation tools like Cypress, WebDriverIO, Pupeeter, Playwritght, Katalon Studio, AI tools like Testium, Functionize etc and i am still working on ...
0
votes
1
answer
69
views
Scrolling using the same code is working 7/10 times
With same code I have tried scrolling, firstly I scrolled to bottom then top and then to element so that element can get loaded properly even though sometimes testcases are failing due to scrolling
...
1
vote
2
answers
2k
views
How to get body data in logs for each request in K6
I would like to know: how can I get the body data in response to each request in K6?
I tried using console.log(response.body), but it did not provide a solution for it. Either it gives a response in ...
-2
votes
1
answer
4k
views
Getting javascript error: element is not defined
I am trying to verify carousel has auto flash and manual selection options. For manual option I checked the slick dots are clickable. For auto flash option I am checking the style animate-repeate is ...