Skip to content
This repository was archived by the owner on May 30, 2023. It is now read-only.
This repository was archived by the owner on May 30, 2023. It is now read-only.

LocalFileDetector - PhantomJs 2.0 GhostDriver Windows8 #13302

@chiragmewada

Description

@chiragmewada

PHP CALL

 $file_input = $this->driver->findElement(WebDriverBy::xpath(".//*[@id='uploader']/form/input[3]"));
    $file_input->setFileDetector(new LocalFileDetector);
    $file_input->sendKeys($image);

ERROR

PHP Fatal error: Uncaught exception 'WebDriverException' with message 'JSON decoding of remote response failed.
Error code: 4
The response: 'Error - incompatible type of argument(s) in call to _uploadFile(); candidates were
_uploadFile(QString,QStringList)'
' in /var/www/craiglist/php/v3/lib/remote/HttpCommandExecutor.php:241
Stack trace:
#0 /var/www/craiglist/php/v3/lib/remote/RemoteWebDriver.php(491): HttpCommandExecutor->execute(Object(WebDriverCommand))
#1 /var/www/craiglist/php/v3/lib/remote/RemoteExecuteMethod.php(36): RemoteWebDriver->execute('uploadFile', Array)
#2 /var/www/craiglist/php/v3/lib/remote/RemoteWebElement.php(338): RemoteExecuteMethod->execute('uploadFile', Array)
#3 /var/www/craiglist/php/v3/lib/remote/RemoteWebElement.php(299): RemoteWebElement->upload('/var/www/craigl...')
#4 /var/www/craiglist/php/v3/includes/classes/clposter_basic.class.php(478): RemoteWebElement->sendKeys('/var/www/craigl...')
#5 /var/www/craiglist/php/v3/includes/classes/clposter_basic.class.php(487): clposter_basic->uploadImag in /var/www/craiglist/php/v3/lib/remote/HttpCommandExecutor.php on line 241

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions