A
A
Arx7772015-09-30 17:47:58
PHP
Arx777, 2015-09-30 17:47:58

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

2 answer(s)
M
matperez, 2015-09-30
@matperez

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.

A
Aleksandr Novikov, 2016-12-09
@real_kasp

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 question

Ask a Question

731 491 924 answers to any question