FIX: Use executeScript() because we discard the return value.

evaluateScript() injects 'return ' into the executed script, which often breaks multi-line code.
executeScript() is better
This commit is contained in:
Sam Minnee 2014-02-13 18:08:28 +13:00
parent b0af00bf9d
commit 5a7d25e530

View File

@ -386,7 +386,8 @@ if(input.closest('.ss-uploadfield-item-info').length) {
while(!input.parent().is('.ss-uploadfield-item-info')) input = input.unwrap();
}
JS;
$this->getSession()->evaluateScript($js);
$this->getSession()->executeScript($js);
$this->getSession()->wait(1000);
return new Step\Given(sprintf('I attach the file "%s" to "%s"', $path, $field));