php - Element with xpath not found codeception -


i using codeception test website work. i've never used codeception , i'm trying first test work. want login, login box using jquery ui (which means login button doesn't have id). website https://moveyourmountain.org

i used in chome console:

$x('//button/span[text()="login"]')

and got response:

[<span class=​"ui-button-text">​login​</span>​]

so xpath right, , selects right thing. however, in codeception have this:

$i = new acceptancetester($scenario); $i->wantto('login regular user.'); $i->amonpage('/'); $i->click('login'); $i->fillfield('email', 'some@one.com'); $i->fillfield('password', 'test123'); $i->click(['xpath' => '//button/span[text()="login"]']); $i->see('my account'); 

and every time run in terminal:

sorry, couldn't click {"xpath":"//button/span[text()="login"]"}: element xpath '//button/span[text()="login"]' not found on page.  scenario steps: 5. click {"xpath":"//button/span[text()="login"]"} 4. fill field "password","test123" 3. fill field "email","some@one.com" 2. click "login" 1. on page "/" 

i using phpbrowser if makes difference. appreciated. have no idea how go testing because isn't resolving same chrome.

try change acceptance.suite.yml.

instead of phpbrowser use webdriver.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -