Questions tagged [facebook-php-webdriver]

35 questions
1
vote
1 answer

How handle fatal error in "stale element reference: element is not attached to the page document" error in php-webdriver?

I need to read ask/bid price from crytpocurrency market. but "Stale Element Error" occurred when market is too crowd. I use facebook/php-webdirver, Selenium Stand Alone Server 3.9.1.jar and chromeDriver and PHP 7.1 . this is my first try to select…
masood vahid
  • 140
  • 1
  • 8
1
vote
1 answer

Get content of JavaScript generated element with php webdriver

How do you get source code of all the child elements of an HTML element that gets rendered by Javascript and is not visible in view source? (using selenium's php library)
Robert Sinclair
  • 4,550
  • 2
  • 44
  • 46
1
vote
1 answer

Fatal error: Uncaught Facebook\WebDriver\Exception\UnknownServerException: Timed out waiting for driver server to start with ChromeDriver and Selenium

What are you trying to achieve? (Expected behavior) I am trying to get the example.php to run successfully with no errors. What do you get instead? (Actual behavior) I get an error 500 and the following error in the log: [Wed Oct 10 19:46:41.597926…
1
vote
0 answers

How can Enable Cookies PhantomJs with php-webdrive

I am using headless browser phantomjs how can enable cookies with Facebook php-webdriver Code is bellow namespace Facebook\WebDriver; use Facebook\WebDriver\Remote\DesiredCapabilities; use Facebook\WebDriver\Remote\RemoteWebDriver; use…
Parnit Das
  • 361
  • 3
  • 7
  • 20
1
vote
1 answer

Setting up php selenium test

i am trying to open firefox as the example explains herehttps://github.com/facebook/php-webdriver/blob/community/example.php with the following code:
1
vote
2 answers

PHP-webdriver How to select third option here

I've the following html and I want to select third option which is Off (optional) using selenium PHP-webdriver. Can anyone please tell me how can I do this? In this HTML, all ids, are dynamically generated. So that I can not use id to find an…
techsu
  • 753
  • 2
  • 7
  • 11
1
vote
2 answers

How this xpath and contains function works in the following xpath

I've a xpath with contains function. I don't know what ., in contains() mean and how does this xpath work? Can anybody please tell me? Thanks. xpath('//div[label//text()[contains(., "Faculty")]]//input')
techsu
  • 753
  • 2
  • 7
  • 11
1
vote
1 answer

Dropzone.js : Upload file without Browse dialog in php-webdriver integration tests

i am using dropzone.js in my project , what i want to do is add file manually to queue without opening the file browser dialogue, the dropzone is already initialized on the element with class .imageDropzone on the page and i am trying to run the…
0
votes
0 answers

How to keep the loaded Chrome extension after ChromeDriver session ends?

I need to install an extension to pre-existing profile for debugging. But ChromeDriver installs extensions in the temp folder and they disappear after the session ends. Can I somehow install the extension in the origin profile folder to keep it?…
0
votes
0 answers

cannot run my automation script on a hosted webserver with php-webdriver

I need to automate downloading a csv file from my webserver. I am trying to complete this task with selenium for php. I wrote this script and it runs fine on my local machine, it runs, logs in to my admin panel and downloads the file without any…
0
votes
1 answer

How to click hCAPTCHA checkbox with php-webdriver in PHP?

I have this code with php-webdriver library in Selenium to click hCAPTCHA's checkbox square button but results to an error instead. See code below... $driver = RemoteWebDriver::create($host,…
gprialde
  • 1
  • 4
0
votes
1 answer

selenium webdriver + chrome :: how to handle network connection failure?

$driver = RemoteWebDriver::create($seleniumUrl, DesiredCapabilities::chrome(), 60 * 1000, 60 * 1000); $driver->get('http://unknown-domain/'); // chrome shows "This site can't be reached" error page $driver->getTitle(); // command hangs for 60s and…
0
votes
2 answers

Selenium php-webdriver ignores all the arguments and extensions

UPDATED: I will leave the question open in case someone can explain what I was doing wrong. I didn't fix the issue, but I achieved result after switching from "selenium-hub + chrome node" to "standalone chrome" image in docker-compose.yaml I'm…
Yevgen
  • 1,239
  • 3
  • 15
  • 30
0
votes
0 answers

I'm not able to login starbucks with selenium

I can log in other websites, but starbucks.com seems special. The script was stuck at the login page for ever. Here is the screenshot after submitted: linux+php+chromedriver+facebook-php-webdriver+selenium try{ …
0
votes
1 answer

php driver report event (PDO issue)

I'm using selenium php port and I'mm trying to log the results of the tests into a database for further mining. Problem is, when I try to record for example the login button: