识别码无法通过选择器找到元素

问题描述 投票:0回答:1

我正在使用WINDOWS-1251的CMS(PHPShop)工作(西里尔语--我想这可能是麻烦的原因)我在页面上写了symple测试。

        $I->see('Пожалуйста, оплатите свой заказ');
        $I->see('Оплатить заказ №');
        $I->seeElement('div', ['class' => 'order']);
        $I->seeElement('input', ['name' => 'token']); // here is the failer
        /**
         * Element located either by name, CSS or XPath element with input' with attribute(s) '"name":"token" was not found.
         */

如果我在页面上搜索,我可以找到这个名称为 "token "的输入,但测试失败。我担心这不是Unicode编码的问题,对吗?

这里有网页的链接

php codeception
1个回答
0
投票

问题出在ajax上。这个内容是动态添加到DOM中的,所以Codeception无法在页面上找到这些元素。

我真的很讨厌任何CMS的魔法和混乱... ...

© www.soinside.com 2019 - 2024. All rights reserved.