Comments (5)
One note in advance: I'm not yet using CodeceptJS, so anything I say now may not fit into the CodeceptJS mindset. So far we're still investigating which tool to use for our usecase.
@stanjer In my case I can find the image tag in a JavaScript object but not in the page's html code.
window.x = new Image();
window.x.src = 'http://placehold.it/350x150';
So: Yes.
That would not work however if the page had AJAXed home to the server.
@DavertMik I have never used Selenium so I don't know if there is something like PhantomJS' onResourceRequested. CodedeptJS would have to keep track of outgoing requests with that.
Maybe something like this?
I.startMonitoringWebRequests();
I.click(this.submitButton);
I.wait(1);
I.sawWebRequestUrlContaining('placehold.it');
Where the last command checks if there was at least one web request to a URL containing the specified string (since the last time we started monitoring).
Not sure if that makes any sense and if it is in scope for CodeceptJS - but it would make things easier for us.
from codeceptjs.
Nothing like that is ready yet. Can you suggest how this feature may look like?
from codeceptjs.
@BlaM can you check it looking into overall html or via js?
from codeceptjs.
This would be very helpful.
from codeceptjs.
Yeah, good idea but I think this should be implemented as custom helper and not a general purpose method. If someone is interested they can develop and publish such helper on NPM or propose it with pull request
from codeceptjs.
Related Issues (20)
- --grep is case insensitive in the mode "dry-run" whereas case sensitive in the mode "run" HOT 4
- So many methods not working with a React Locator.
- MockRequest with Puppeteer not working HOT 1
- There is no support for addScriptTag HOT 2
- [FR] - implementing the request interception for ppt helper
- Playwright to codecept locator conversion HOT 3
- Playwright doc for grabTrafficUrl malformatted
- codeceptjs run-workers X can do with sequencing improvements HOT 2
- run-multiple reporting of failed steps not working HOT 4
- run-multiple execution creates output sub folders with alphanumeric value instead of browser names HOT 9
- runOnAndroid/runOnIOS blocks are stuck after upgrading CodeCept from 3.4.1 to 3.5.15 and Appium From 1 to 2. HOT 1
- quickstart instructions crash HOT 5
- Not able to do file download validation with run-multiple execution HOT 1
- I.fillField and I.see is not working when we do the cross browser testing HOT 2
- While using run-multiple for parallel execution, method I.dontSeeElement gives error Cannot read properties of undefined (reading 'react') HOT 7
- in BDD or Gherkin mode, the `After` is not synchronous where next scenario starts (while the `After` is still executing) HOT 5
- It takes a long time to finish the process after testing
- Facing issues in fetch the element with data-testid HOT 6
- In codeceptJS version 3.6.0, an error occurred when using the pause() method HOT 2
- Scenario and step timeouts are not working as expected HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from codeceptjs.