-
Notifications
You must be signed in to change notification settings - Fork 132
[Question] executeJS action #214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @mmularski , could you try next code:
|
@mmularski Yes it is possible to grab the value from an
|
@ameysar @KevinBKozan following code does not work for me:
It generates PHP like: but |
@mmularski which version of magento2-functional-testing-framework do you use ? Provided example works on 2.2.0 and above. If you are using version lower than 2.2.0 code for executeJs will be generated without return value and in version >= 2.2.0 executeJs will have return value |
@ameysar That might be this. I use MFTF 2.1.2, but when I'm trying to update to version 2.2.0 and generate a suite I got an error:
|
@mmularski please check documentation. Before generating tests you should build project by next commant |
@ameysar
Edit: |
Hello
I need help with
<executeJS>
action.Is it possible to get value from executed JS via
<executeJS>
action and pass it in different action?I need something like example attached in documentation
$myVar = $I->executeJS('return $("#myField").val()');
I know about
<grabTextFrom>
action, but before grabbing value I need to process it.The text was updated successfully, but these errors were encountered: