iframe に「Authenticated」という名前のボタンがあり、behat featurecontext ファイルで以下のコードを使用してクリックします。
$this->getSession()->getDriver()->executeScript("jQuery( document ).ready(function() {
var frame = $(iframe[name='datacash-payment-frame']).get(0).contentDocument;
$(input[name='choice'][value='Authenticated'],frame).click(function() {
alert(\'fgsdfgsdgs\');
});
});
");
「不正な文字」というエラーが発生する