Wrong functional test with Selenium and datatables

Wrong functional test with Selenium and datatables

rukbatrukbat Posts: 5Questions: 0Answers: 0
edited August 2013 in General
Hi, when I run a functional test with Selenium in a page with a Datatable, the table won't populate and remains empty.

Got any tips? (Maybe is a wrong configuration of selenium or missing plugin...)

Thank you

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    You are going to have to give us a whole lot more information that! I have absolutely no idea why it isn't working I'm afraid.

    Allan
  • rukbatrukbat Posts: 5Questions: 0Answers: 0
    Thank you Allan, I think it's more a Selenium question...

    Anyway, here's my "code":

    [code]
    public function testMyFunction() {
    ...
    $this->click("page with datatable");
    $this->waitForPageToLoad("30000"); // pass this wait but no ajax calls and table empty
    $this->click("a table element");
    ...
    [/code]

    I'm using datatable with server side calls.
  • rukbatrukbat Posts: 5Questions: 0Answers: 0
    Ok.

    In my datatable setup there was oLanguage.sUrl param, like

    [code]
    "oLanguage": {
    "sUrl": "js/myEpicUrl/dataTables.IT.txt"
    },
    [/code]

    I removed it and the functional test with Selenium works again.
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Sounds like an async issue then, since the language information is obtained by Ajax.

    Allan
This discussion has been closed.