All Questions
Tagged with php selenium-webdriver
1,082 questions
2
votes
0
answers
59
views
How to properly handle native JavaScript confirm() in Laravel Dusk without triggering UnexpectedAlertOpenException
I’m writing a Laravel Dusk browser test for a “Delete Contact” button that shows a native JavaScript confirm() dialog before deleting a record.
However, every time the test runs, I get this error:
...
0
votes
0
answers
67
views
How to start Selenium standalone server from a PHP script?
In my PHP script I am using php-webdriver library with Edge webdriver to get data from a web page and I need to start Selenium standalone server from the script. I copied selenium-server-4.35.0.jar, ...
0
votes
0
answers
31
views
Added cursor only displayed when moving to button elements
I'm following this example in terms of adding a cursor to the captured video when running my test:
Visualize / Show mouse cursor position in selenium 2 tests (for example PHPUnit Webdriver)
I've ...
0
votes
0
answers
41
views
Calculate code coverage of PHP based application using Selenium tests that reside in separate repository
I have two separate projects: one is my web app itself and other one is Selenium + Java automation tests for my app and we have docker setup.
Is there any way to measure code coverage using Xdebug ...
1
vote
1
answer
206
views
Scraping cookies from Websites with headless browsers and php
I have tried to write a program in php that scrapes the cookies from websites while connecting with curl and using the $_COOKIE functionality.
Turns out i can only read php cookies like this but i ...
0
votes
0
answers
50
views
Problem with running a script using selenium python via php
I have a problem with executing a script from the PHP side. If I execute the python script from the console, everything works. If it is executed from php, i.e. via the www-data user, there is a ...
1
vote
1
answer
81
views
Solution for Unable to locate element based on text option of select on Selenium
I'm struggling to create auto click using PHP Selenium for select2 dropdown based on text name, instead of value option because the value is random.
HTML
<div class="input-group-prepend"&...
1
vote
1
answer
385
views
How do I disable GUI when running Symfony Panther with "createSeleniumClient"?
I would like to run Symfony Panther selenium instances without showing the GUI. I am currently unable to achieve that. I have achieved that with Client::createChromeClient however I am using ...
1
vote
0
answers
138
views
How to add --proxy-header using Selenium webdriver in PHP?
Im using Selenium by WebDriver in PHP script.
As selenium browser I have Firefox configurated on my docker container.
I need to add proxy header with some values to set proxy settings according to my ...
0
votes
1
answer
91
views
PHP Webdriver wait for a dynamic drop down list to populate
I am writing a php script to test out a webpage with 2 drop down lists, the first dropdown gets populated as soon as the page is loaded
After list1 is populated, i have to select a value then the ...
0
votes
1
answer
47
views
how can i send extra parameter to php selenium script
i am using below php library to create selenium automatic website testing.
https://github.com/lmc-eu/steward
in this library script execute using below command. in script we can open browser and ...
0
votes
0
answers
73
views
Few test cases returns a GET 500 Internal Server Error on Laravel
So I have a laravel app testing project. I uses Selenium Python and Appium for the test script. It is already connected to the laravel, here is the UI:
As you can see, there are few test cases that ...
0
votes
1
answer
76
views
Execute JAR file using PHP [duplicate]
How do I execute selenium jar file and chrome driver exe
I am running below code through cmd.
java -jar selenium-server-standalone-2.42.2.jar -Dwebdriver.chrome.driver=PATH/chromedriver.exe
How do I ...
0
votes
0
answers
212
views
PHP Webdriver Chrome not starting and loading for very long time
I have installed php-webdriver/webdriver version "1.7.*" through composer and trying to start chrome driver on amazon ec2 server.
use Facebook\WebDriver\Chrome\ChromeDriver;
use Facebook\...
1
vote
0
answers
99
views
I want to run the screenshot function via asynchronous communication
I would like to create a site that outputs a screenshot of the URL destination and the expiration date of the ssl certificate when the URL is entered. The screenshots are done using selenium. However, ...