Different behaviour using php selenium on localhost or Jenkins -
i got strange case of using php selenium once use on localmachine , once pushed jenkins.
so have function
public function tablecontent() { $data = array(); $rows = tablebase::getalltablerowsbyid($this->getwebdriver(), self::table); foreach ($rows $row) { //the problematic part $row->getlocationonscreenoncescrolledintoview(); array_push($data, $this->getrowcellvaluesbyheadername($row)); } return $data; }
this function goes trough whole table , each row collects data. returns array of arrays of data. problem getlocationonscreenoncescrolledintoview works ok , table scroller moved once run code on local machine. when commit code jenkins , watch test on remote machine somehow getlocationonscreenoncescrolledintoview method not working. scroller isn't moved. if view isn't scrolled data not collected , test fails. there limitations regarding getlocationonscreenoncescrolledintoview on jenkins? how come localhost test working, same test not working on jenkins?
if need additional information's please let me know , provide. thank you
it looks rendering problem. jenkins running on virtual machine, that's why code "get's" lost
Comments
Post a Comment