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
Is it posible to use Jquery in codecept to locate element. I personally don't like the yield I.grabTextFrom because it does not work inside a loop. I was wondering is jquery can be used here?
Is it posible to use Jquery in codecept to locate element.
I think you are trying to do some complex stuff which is not handled by default actions. No problem.
But in CodeceptJS tests should be written from a user's perspective. All complex technical stuff can be handled inside a helper. So if you require something custom, please write your own helper. And yes, there you can use executeScript or locate elements in a different manner with webdriverio
I am having trouble getting the grabbers to work with the yield. If I use
yield then the following code execution stops. Can you please help me
figure this out? Or give me an example where I can grab text and then
continue my code execution?
Is it posible to use Jquery in codecept to locate element.
I think you are trying to do some complex stuff which is not handled by
default actions. No problem.
But in CodeceptJS tests should be written from a user's perspective. All
complex technical stuff can be handled inside a helper. So if you require
something custom, please write your own helper http://codecept.io/helpers/. And yes, there you can use executeScript
or locate elements in a different manner of webdriverio
—
Reply to this email directly or view it on GitHub #43 (comment)
.
Thanks for answering. This example is not working:
'use strict';Feature('Testing Begins');Before((I)=>{I.resizeWindow(1500,1000);I.amOnPage('http://absolutenet.com');});Scenario('ANI testing',function*(I){I.waitForText('bring your site to life');I.amOnPage('http://www.absolutenet.com/');lettitle=yieldI.grabTitle();console.info(title);I.see('bogus text that is not there');//this should give an error and not success.});
Activity
arsa666 commentedon Jan 8, 2016
I was able to use jquery with executeScript();
=)
DavertMik commentedon Jan 11, 2016
I think you are trying to do some complex stuff which is not handled by default actions. No problem.
But in CodeceptJS tests should be written from a user's perspective. All complex technical stuff can be handled inside a helper. So if you require something custom, please write your own helper. And yes, there you can use
executeScriptor locate elements in a different manner with webdriverioarsa666 commentedon Jan 11, 2016
Hi Michael,
I am having trouble getting the grabbers to work with the yield. If I use
yield then the following code execution stops. Can you please help me
figure this out? Or give me an example where I can grab text and then
continue my code execution?
This post is related to that too:
#47
This simple example does not work. Is this a bug in CodeceptJS? or am I
missing something?
Scenario('First Scenario', function* (I) {
let grabberResult = yield I.grabValueFrom('input[name=firstName]');
I.see('XKJSHJDSJXHJSKHXS'); //this should fail, but passes.
});
Arsalan Ahmed
Senior Software Developer
Email: ahmedarsalank@gmail.com
Tele: +50760041240
On Mon, Jan 11, 2016 at 4:31 PM, Michael Bodnarchuk <
notifications@github.com> wrote:
DavertMik commentedon Jan 11, 2016
You don't use grabberResult here.
Please copy the whole test so I could check if it works
arsa666 commentedon Jan 11, 2016
Thanks for answering. This example is not working:
DavertMik commentedon Jan 11, 2016
Thanks. Bug is reproduced. Working on to fix it
DavertMik commentedon Jan 21, 2016
Done in d68b2a7