Hi Joel,
I am interested in the latter approach. Can you please walk me through the steps required to update the embedded assets? I am using Sencha Test v2.0.2.9.
Thank you.
Arun
Hi Joel,
I am interested in the latter approach. Can you please walk me through the steps required to update the embedded assets? I am using Sencha Test v2.0.2.9.
Thank you.
Arun
Hi Arun--
Here are the steps:
Hope this helps! ThanksTo upgrade the assets, first go to the following directory:
~/Library/Application Support/Sencha/Studio/selenium (Mac)
C:\Users\{username}\.sencha\selenium (Windows)
Next, download the newer chromedriver (version 2.28 or above), and place it in the “chromedriver” folder. Be sure to match the naming convention that the old one used, obviously keeping the newer version number (e.g., “2.28-x64-chromedriver”).
While you’re at it, I’d also download the most recent version of selenium server standalone, version 3.3.1. Again, make sure to use the same naming convention as the old version (3.3.1-server.jar)
Finally, open the “selenium-config.json” file, and update the version numbers to match the versions of the chromedriver and selenium server jar that you downloaded.
After these changes are made, you should be able to restart Studio and the new driver and server will be used for the Embedded browser.
Thanks for the detailed steps, Joel.
Three observations:
1. I am using Windows and have "C:\Users\{username}\.sencha\Studio\selenium" instead of the path you mentioned above.
2. The chromedrivers available at https://chromedriver.storage.googleapis.com/index.html are always chromedriver_win32 versions. Is it okay to download them and save as x64 in the above mentioned sencha directory?
3. So, I went ahead and followed the steps you mentioned for the folder structure I have at my end. I downloaded and replaced the chromedriver and selenium-server with appropriate versions. I also updated the config json. I restarted Studio and am getting the following error messages:
err_sencha_recording3.PNGerr_sencha_recording2.PNG
It says "Missing chromedriver\2.28-x64-chromedriver" even though I have it at the specified location.
Please let me know if I am going in the wrong direction.
Thanks,
Arun
Hi Arun--
Can you share the selenium-config.json file, as well as take a screenshot of the contents of the "selenium" and "chromedriver" folders? Thanks
Here you go, Joel.
Find the screenshots attached:
err_sencha_recording4.PNGerr_sencha_recording5.PNG
This is Users>username>.sencha>Studio>selenium setup. I have the same setup in Program Files>Sencha>Test>2_0_2_9>selenium.
and the selenium-config text below:
{
"hub": {
"version": "3.3.1",
"drivers": {}
},
"node": {
"version": "3.3.1",
"drivers": {
"chrome": {
"version": "2.28"
}
}
}
}
-Arun
Hi Arun--
Thanks for the screenshots. You'll need to put the new chromedriver and selenium server files in the paths visible in your screenshots. This is where the embedded browser's start up scripts is looking for the assets. Thanks!
Sure.
The first 2 screenshots are for the updated assets in the correct path. The other 2 screenshots are the errors I am getting after running Studio.
err_sencha_recording4.PNGerr_sencha_recording5.PNGerr_sencha_recording2.PNGerr_sencha_recording3.PNG
Let me know if I am missing anything.
Thanks,
Arun
Hi Joel,
Do I need to update the Path environment variable in my system with chromedriver path or selenium-server path?
-Arun