dalekjs / dalek

[unmaintained] DalekJS Base framework
MIT License
695 stars 63 forks source link

No access to HTML elements in an Ajax response? #153

Closed colossus13 closed 9 years ago

colossus13 commented 9 years ago

Hi there.

I'm writing my first tests for dalekjs. At first everything works fine. DalekJs logs in and clicks a button on my page. He can check if some HTML-Elements are existing (like assert.exists('#idOfAnElement')).

When the button is clicked an ajax request will be executed and its response contains new HTML elements, also provided with IDs to select them.

But DalekJs doesn't find any element in the response =>

x EXISTS 0 EXPECTED: undefined 0 FOUND: false 0 MESSAGE: element in ajax response found

So I'm wondering DalekJs can not reach HTML elements in AJAX responses generally?

I've tested it in PhantomJS (1.9.8) and Chrome 41. During the Chrome test you can see that the DalekJS test runs fine. After the button has been clicked the AJAX response will be rendered.

Greetings

colossus13 commented 9 years ago

Mmh, I don't know where my error but now I can reach the Ajax response with Chrome.

I don't test my application with PhantomJS anymore because of the "Error: connect ENOBUFS". (Win 7 64 bit)

I close this issue.