You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
Reacted by Aleksandar Goševski and raja-aitlahrir1
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
Activity
DavertMik commentedon Dec 8, 2015
Nothing like that is ready yet. Can you suggest how this feature may look like?
BlaM commentedon Dec 8, 2015
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.
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?
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.
aleksandargosevski commentedon Sep 10, 2016
This would be very helpful.
DavertMik commentedon Jan 14, 2017
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