Questions tagged [web-testing]

Software testing that focuses on web applications. Before the system becomes public, complete testing of a web-based system can help to address issues.

Software testing that focuses on web applications. Before the system becomes public, complete testing of a web-based system can help to address issues.

731 questions
6
votes
3 answers

Anti forgery token and web testing

I am trying to do a web test in VS2012 for an MVC site. One of the scenarios is to login and go through a list of products, select the one you want and follow through to the purchase page. Problem is that when the web test is run, I get an error…
Ahmed ilyas
  • 5,722
  • 8
  • 44
  • 72
6
votes
2 answers

Selenium: difference between "role hub" and "role webdriver"?

I'm using Selenium for automated testing. What's the difference between java -jar selenium-server-standalone-2.24.1.jar -role hub and java -jar selenium-server-standalone-2.24.1.jar -role webdriver ? It seems to be the same. Or is there any…
ccman
  • 1,283
  • 2
  • 10
  • 10
5
votes
3 answers

Clearing browser cache with Selenium

I've been using the Ruby selenium-webdriver gem to perform some testing on a web app at work. One thing that would be great would be the ability to programmatically clear the browsers cache before performing timed page loads etc but I can't seem to…
seadowg
  • 4,215
  • 6
  • 35
  • 43
5
votes
2 answers

In Testcafe, how can I wait for a 2nd element of the same selector to appear?

I have a scenario in which multiple elements of the same className appear one after the other (it depends on a server response). What I'm trying to achieve is passing the test only after 2 elements of the same selector are present, but currently,…
tkore
  • 1,101
  • 12
  • 31
5
votes
0 answers

Testcafe concurrency throwing weird errors

I have a suite of tests that, when running without concurrency, all pass fine. When I start running them with concurrency, they start to fall apart. I do not believe that the tests have inter-dependencies that are making them fail. When the test…
5
votes
1 answer

How to get the css property of a tags in testcafe?

I have a simple code with a structure that looks something like this:
My goal is to assert the css property whether it is equal to value of not. I have tried…
Wilbert
  • 149
  • 7
5
votes
2 answers

Is there a way to bail the suite if a certain test fails?

I have one test that, if it fails, indicates larger problems with the app. There wouldn't be any point in running the rest of the tests if that one test fails. Is there a way to bail the suite if a single test fails but run all tests if that test…
jcollum
  • 43,623
  • 55
  • 191
  • 321
5
votes
2 answers

Documentation for performing data driven testing using testCafe?

Data Driven testing is an important aspect of writing automated test cases for any tool. I have been experimenting with testcafe lately and haven't been able to find a convincing way of doing data-driven tests i.e. executing a test for different…
5
votes
3 answers

Access the name of the current fixture and test at runtime

For usage as in test(testName, async (t) => { const ua = await getUA() await t.takeScreenshot( fixtureName + "/" + testName + "/" + identifyUserAgent(ua) + "/" + "scsh_1.png", ) ... As of…
Joerg M.
  • 397
  • 2
  • 12
5
votes
1 answer

How can I check for an element is present in the page using golang knq/chromedp

I am creating an app to using [chromedp][1] How can I check for an element is present in the page? I tried to use cdp.WaitVisible() but it didn't give me what I wanted. I need this so I can make dictions if the application will do one thing or the…
Amr Zenga
  • 61
  • 1
  • 8
5
votes
2 answers

How to select a frame with no name or id in robot framework?

I need to select a frame but it has no name or id. How do it do it? Thanks!
5
votes
3 answers

Automatic web tester for 404 links?

Is there any test framework or software that can automatically go through a site and find 404 errors from links?
bcoughlan
  • 25,987
  • 18
  • 90
  • 141
5
votes
1 answer

How to select Chrome extensions to enable when using Selenium

I am using Selenium web driver to develop an automated test using Chrome as my browser. I am using Python for this. I have an extension on my Chrome browser that I would like enabled when Selenium opens Chrome. The problem is that when Selenium…
5
votes
2 answers

How to do web testing for ASP.NET MVC views?

In ASP.NET WebForms, I've used Selenium to record and run my web and UI tests in a number of projects. I know we can unit test Controllers and Models in ASP.NET MVC very easily. What about Views? Would you also test Views? If not how to make sure…
The Light
  • 26,341
  • 62
  • 176
  • 258
5
votes
4 answers

How to select value in a span element with Selenium testing?

The page I am trying to test has a span element that is actually functioning as a drop down select menu. The Selenium code for "select" elements does not work and throws the following: Exception in thread "main"…
vlr
  • 780
  • 4
  • 16
  • 33