Selenium - When browser Driver version will get released - selenium-webdriver

When can we get the selenium driver versions after the browser upgrade.
For Chrome driver I got info(https://chromedriver.chromium.org/downloads/version-selection) - Before a new major version of Chrome goes to Beta, a matching version of ChromeDriver will be released.
For other browsers(Firefox,Edge,IE..) when can we get the updated driver versions when the browser is upgraded.
I'm not able to find clear information other than chrome.

For the IE browser, you can download the IE driver server from the link below.
Download Internet Explorer Driver Server
For the MS Edge legacy browser prior to version 18, you can download the web driver from the link below.
Download Microsoft Edge Legacy web driver
If you want to download the web driver for the MS Edge legacy browser >= version 18, you can refer steps below.
Microsoft WebDriver for Microsoft Edge version 18 is a Windows Feature on Demand.
To install run the following in an elevated command prompt:
DISM.exe /Online /Add-Capability /CapabilityName:Microsoft.WebDriver~~~~0.0.1.0
For the MS Edge (Chromium) browser, You can download the latest version of the web driver from the link below.
Download MS Edge (Chromium) web driver
You can refer to the link below to view the full version directory from starting to the latest version of web driver for MS Edge (Chromium) browser.
Full version directory

Related

How to config and open MS Edge Headless browser

I have requriment to open the Application in MS Edge headless browser, I googled but no luck didn't find proper guidance. please provide how we can start and load url in Edge headless browser.
Environment I have tried (Selenium + Java)
windows 10 or 7
Selenium version : 3.141.59
Java : 1.8 and 11
Edge Browser version : 88.0.705.81 (Official build) (64-bit) (Chromium)
Edege Driver version : 87.0.664.55 / 88.0.705.81
these 2 below methods are mentioned in some blogs both are showing errors AND does not belong to JAVA+EDGE+Headless combo
EdgeOptions op = new EdgeOptions();
op.useChromium =true;
op.addArguments("headless");
both are showing as wrong in IDE.
please shed light on this topic.

Pycharm : Robot Framework: SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 75

I am using Pycharm latest version as given below whenever I pass chrome as browser in my Robot test case it gives me the exception as "SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 75"
However, I have proper chromedriver that supports my current browser version of 77.0.3865.90 is placed under /user/local/bin with all correct permissions. Just to cross check, I have checked with firefox and it worked.
can you please let me how to resolve this as I need to run test on chrome.
---------------Pycharm details ---------------
PyCharm 2019.2.3 (Community Edition)
Build #PC-192.6817.19, built on September 25, 2019
Runtime version: 11.0.4+10-b304.69 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.14.6

OperaDriver for Selenium remains stuck when launching tests

I am using TestNG to run automated tests using a Selenium Java client. The tests are running fine on chrome and firefox but when I try to run the same on opera, I end up seeing tests timing out on the following console message:
Starting OperaDriver 2.35 (ee0117ea0f7f76009fd2aa3dd6b6164205de32b5) on port 27234
Only local connections are allowed.
org.openqa.selenium.WebDriverException:
unknown error: Opera failed to start: exited abnormally
(Driver info: OperaDriver=2.35 (ee0117ea0f7f76009fd2aa3dd6b6164205de32b5),platform=Linux 4.13.0-38-generic x86_64) (WARNING: The server did not provide any stacktrace information)
Environment
Ubuntu 16.04LTS
JDK 10
Selenium 3.11.0
OperaDriver 2.35(downloaded from here)
Code
OperaOptions options = new OperaOptions();
options.setBinary("operadriver");
testDriver = new OperaDriver(options);
I am trying to understand what went wrong here.
Many in the community seem to get the same error when trying to get opera running with selenium and opera driver. I also tested this with your versions and get the same output, although the other browsers are working just fine.
Opera does not seem to put a lot of resources in making this work. Check out this link for some more information, it is actually a slightly different issue, but still there are some background informations there.
The suggested hack is to run opera through an appropriate version of the chromedriver. I also got opera running with selenium that way some time ago (therefore other versions), but I did not yet test this with your configuration.
Update
I managed to get the following configuration work:
Ubuntu 16.04
Java 1.8
Selenium 3.11.0
Operadriver 2.30
Opera 48.0.2685.52
by using the chrome hack and passing the operadriver as the "chrome"driver

Which version of firefox is compatible with Selenium 3.3.1 without use of gecodriver

I want to run scripts on Firefox having selenium webdriver version installed as 3.3.1 but w/o any use of geco driver.
kindly help as I am working on client machine
No, you cannot work with Selenium 3.3.1 without using geckodriver.
Selenium 2.53 was the last version which worked without gecko driver with Mozila Firefox (till version 47.x)
To work with Selenium 3.3.1 you need to mandatory download gecko driver v0.15.0 from here and save it. Upgrade your Mozila Firefox to 53.x
Note that: For gecko driver v0.15.0 you must upgrade to Selenium 3.3 since this release aligns HTTP responses with the WebDriver standard.
Next you need to provide the absolute path of the gecko driver in your code. Your code will look like:
System.setProperty("webdriver.gecko.driver", "C:\\Utility\\BrowserDrivers\\geckodriver.exe");
FirefoxDriver driver = new FirefoxDriver();
driver.manage().window().maximize();
driver.get("https://www.facebook.com/");
driver.findElement(By.name("email")).sendKeys("your_username");
Let me know if this answers your question.

Laravel SQL Server - PDOException could not find driver on migrate

I have a laravel 5.2 instance configured to run against MS SQL Server. I have downloaded from microsoft the drivers and the connection runs perfect DB::table('usuarios')->select('*')->get(); returns:
[{"id":"5","username":"jtd","password":"$2y$10$t8RXYy\/afaEuIpE8GIk2bOvbHsQoj0fhGPxmo\/3UqJABKVA4I4pHC","email":""}]
But when I try to php artisan migrate i get the:
[PDOException]
could not find driver
Why this is happening?
Stack trace:
c:\wamp\www\presence\webapp>php artisan migrate --verbose
[PDOException]
could not find driver
Exception trace:
() at C:\wamp\www\presence\webapp\vendor\laravel\framework\src\Illuminate\Datab
ase\Connectors\Connector.php:55
PDO->__construct() at C:\wamp\www\presence\webapp\vendor\laravel\framework\src\
Illuminate\Database\Connectors\Connector.php:55
Illuminate\Database\Connectors\Connector->createConnection() at C:\wamp\www\pre
sence\webapp\vendor\laravel\framework\src\Illuminate\Database\Connectors\SqlServ
erConnector.php:32
Illuminate\Database\Connectors\SqlServerConnector->connect() at C:\wamp\www\pre
sence\webapp\vendor\laravel\framework\src\Illuminate\Database\Connectors\Connect
ionFactory.php:61
Illuminate\Database\Connectors\ConnectionFactory->Illuminate\Database\Connector
s\{closure}() at n/a:n/a
call_user_func() at C:\wamp\www\presence\webapp\vendor\laravel\framework\src\Il
luminate\Database\Connection.php:924
Illuminate\Database\Connection->getPdo() at C:\wamp\www\presence\webapp\vendor\
laravel\framework\src\Illuminate\Database\Connection.php:792
Illuminate\Database\Connection->reconnectIfMissingConnection() at C:\wamp\www\p
resence\webapp\vendor\laravel\framework\src\Illuminate\Database\Connection.php:6
77
Illuminate\Database\Connection->run() at C:\wamp\www\presence\webapp\vendor\lar
avel\framework\src\Illuminate\Database\Connection.php:349
Illuminate\Database\Connection->select() at C:\wamp\www\presence\webapp\vendor\
laravel\framework\src\Illuminate\Database\Schema\Builder.php:55
Illuminate\Database\Schema\Builder->hasTable() at C:\wamp\www\presence\webapp\v
endor\laravel\framework\src\Illuminate\Database\Migrations\DatabaseMigrationRepo
sitory.php:141
Illuminate\Database\Migrations\DatabaseMigrationRepository->repositoryExists()
at C:\wamp\www\presence\webapp\vendor\laravel\framework\src\Illuminate\Database\
Migrations\Migrator.php:404
Illuminate\Database\Migrations\Migrator->repositoryExists() at C:\wamp\www\pres
ence\webapp\vendor\laravel\framework\src\Illuminate\Database\Console\Migrations\
MigrateCommand.php:103
Illuminate\Database\Console\Migrations\MigrateCommand->prepareDatabase() at C:\
wamp\www\presence\webapp\vendor\laravel\framework\src\Illuminate\Database\Consol
e\Migrations\MigrateCommand.php:58
Illuminate\Database\Console\Migrations\MigrateCommand->fire() at n/a:n/a
call_user_func_array() at C:\wamp\www\presence\webapp\vendor\laravel\framework\
src\Illuminate\Container\Container.php:507
Illuminate\Container\Container->call() at C:\wamp\www\presence\webapp\vendor\la
ravel\framework\src\Illuminate\Console\Command.php:169
Illuminate\Console\Command->execute() at C:\wamp\www\presence\webapp\vendor\sym
fony\console\Command\Command.php:256
Symfony\Component\Console\Command\Command->run() at C:\wamp\www\presence\webapp
\vendor\laravel\framework\src\Illuminate\Console\Command.php:155
Illuminate\Console\Command->run() at C:\wamp\www\presence\webapp\vendor\symfony
\console\Application.php:794
Symfony\Component\Console\Application->doRunCommand() at C:\wamp\www\presence\w
ebapp\vendor\symfony\console\Application.php:186
Symfony\Component\Console\Application->doRun() at C:\wamp\www\presence\webapp\v
endor\symfony\console\Application.php:117
Symfony\Component\Console\Application->run() at C:\wamp\www\presence\webapp\ven
dor\laravel\framework\src\Illuminate\Foundation\Console\Kernel.php:107
Illuminate\Foundation\Console\Kernel->handle() at C:\wamp\www\presence\webapp\a
rtisan:36
I found a solution. I post it for everyone. I use WAMP stack (PHP, Apache and MySQL). The fact is that wamp uses the 5.5.12 version for terminal CLI, so I have to install SQL Server PDO Extensions on the version I am using and (besides this) on the 5.5.12 version (I have several PHP versions installed). Can provide more information if needed.

Resources