Answer the question
In order to leave comments, you need to log in
How to connect Jquery and JS files in Codeception through selenium webdriver?
How to connect Jquery and JS files in Codeception through selenium webdriver to make tests on dynamically generated html, from Jquery, for example?
Tried through or (after putting the necessary files in 'tests/_data/filename') But it didn't work $('').append('');
$I->executeJS();
$I->attachFile();.
Answer the question
In order to leave comments, you need to log in
It seems to me that you can create a ready-made test page on which these files are already connected and run tests on it.
It seems like this is possible:
$I->executeJS("
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = 'code.jquery.com/jquery-1.8.3.js';
document.head.appendChild(script);
");
$I->executeJS("your_js");
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question