I have to automate for Google Chrome old versions such as 5,6,7...till the latest version. I see that chromedriver is available from version 13 onwards. Where can I find for the older version of these?
If I can't automate using webdriver, does selenium 1.0 supports all the older versions of google chrome? Is there a way to merge selenium 1.0 and webdriver?
As stated here (all the way down):
the ChromeDriver is only compatible with Chrome version 12.0.712.0 or newer
That's good news, one more version to work with, it's compatible with Chrome 12+!
Let's read on:
If you need to test an older version of Chrome, use Selenium RC and a
Selenium-backed WebDriver instance:
URL seleniumServerUrl = new URL("http://localhost:4444");
URL serverUnderTest = new URL("http://www.google.com");
CommandExecutor executor = new SeleneseCommandExecutor(seleniumServerUrl, serverUnderTest, DesiredCapabilities.chrome());
WebDriver driver = new RemoteWebDriver(executor);
This is worse, but still good, you can write WebDriver-like code and be backed by Selenium RC. That's written in pure JavaScript and therefore should work in any well configured and JavaScript-friendly browser. Chrome has always been JS-friendly, so chances are you'll get it to work everywhere!
Related
I am facing this issue with react-pdf library. With this new chrome 92 version update i am supposed to get these table filled with data but instead i get it empty. this happened with couple of pdfs.
I am ussing React version 16.9.x
React version 16.9.x
react-pdf 3.0.4
Chrome version 92.0.54xx, firefox version 90.0.2
pdffile
I think it is somehow related to the pdfjs version
Since two days it is not possible anymore on my PC to open websites with firefox via Selenium WebDriver (Java, Maven, IntelliJ). A blank page is opened in a new firefox window and nothing happens. I can access the specified website manually in the firefox window that is opened.
This is the code I am using for creating the webdriver (the profile SELENIUM exists; I created it manually):
System.setProperty("webdriver.gecko.driver", "geckodriver.exe");
ProfilesIni profile = new ProfilesIni();
FirefoxProfile ffprofile = profile.getProfile("SELENIUM");
return new FirefoxDriver(ffprofile);
And to open pages I am using:
driver.get(myURL);
The error message from IntelliJ is:
SZgNd84ad1sbgGXU5f5p+46dwuqwWXX8hUp4lAPBZwEAAA0DAAANAAAAAAAAAAAAAAAAALfGQwB4dWxzdG9yZS5qc29uUEsFBgAAAABGAEYAnRUAAFnIQwAAAA (and some million more letters) == does not equal undefined"] (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 0 milliseconds
Today Chrome also stopped working, it only shows "Not secure" next to the URL and data; in the URL bar.
Is there any way to find out what caused this and how this can be fixed?
I am using the latest version of selenium (defined in pom.xml) Chrome Version 57.0.2987.133, Firefox 45.4.0.
Thanks in advance for any help!
I have seen this in a previous project, so basically what happens is that all this is caused by incompatibility between Selenium and Firefox/Chrome versions, but not by any one specific version number. So what you really want is to be 1-2 driver versions behind the newest, if your WebDriver is on the latest version. Otherwise, roll the Firefox/Chrome version back even further if your WebDriver is older, or upgrade Webdriver.
Other options is to use FF profiles/Chrome preferences. This is an example that was working back then:
FirefoxProfile prof = new FirefoxProfile();
//FirefoxProfile prof = profile.getProfile("default");
//prof.setPreference("browser.startup.homepage", pageUrl);
//prof.setPreference("startup.homepage_welcome_url", pageUrl);
//prof.setPreference("startup.homepage_welcome_url.additional", pageUrl);
prof.setPreference("xpinstall.signatures.required", false);
prof.setPreference("toolkit.telemetry.reportingpolicy.firstRun", false);
You can try other combinations of those settings and see which one will work for you.
I have a big Selenium test suite that's testing a web service. Given an input url, the web service returns either a regular html response or a json response. The test suite is being executed with Firefox's Selenium IDE. The tests call the open command on a given url and then verify stuff on the returned json/html. It used to work great until for some reason Firefox has stopped opening the jsons automatically. Instead of opening the json response as if it were a regular web page, Firefox asks "What should Firefox do with this file" and prompts me to select a program to open the file with.
How do I force Selenium IDE to make Firefox display the json responses as it used to?
Cases like these are usually Firefox & Selenium IDE version incompatibility. This can be from using a much newer version or an old version of Firefox that the IDE doesn't quite support.
In your case it appears to be an older version issue.
The first step you should do is update both the IDE & Firefox and take it from there.
The release notes also detail what version (range) of Firefox it generally supports.
I used Selenium IDE for testing on Firefox but now I want to use the same test cases on other browsers like Chrome, IE9 and Safari. What can I do to do this?
To run selenium IDE generated script into another browser, you need to store all your test script under test suite.
Then you can run that test suite with selenium RC server.
java -jar selenium-server.jar -htmlSuite "insert_browser_name_here"
"insert_root_domain_here" "insert_full_path_to_suite_here"
"insert_a_full_path_to_store_reports_here"
In above command you need to pass suite location, browser name, base URL, and location for result.
For selenium support browser you can refer
http://radical-qa.blogspot.in/2012/03/selenium-supported-browsers.html
Selenium IDE is the Firefox extension. To run your tests on other browsers, you'll need another tool, Selenium WebDriver, for example.
PS I think that Webdriver actually is the next evolution step for QA automation, IDE lacks flexibility a lot
I found the same solution as above but explained in mere detail here: http://www.qafriend.com/selenium/running-selenium-script-on-internet-explorer-and-chrome
I want to make a video platform.
I am experimenting with WebRTC, running nodejs as a server.
Now the problem is that I have Chrome 21 in Ubuntu goes as it should, no errors at all, but in Chrome 23 (in Windows), I hace an error at client side.
Here is my code
if(typeof webkitPeerConnection === 'function')
pc = new webkitPeerConnection("NONE", onSignalingMessage);
else
pc = new webkitDeprecatedPeerConnection("NONE", onSignalingMessage);
The error happens to try to use the function webkitDeprecatedPeerConnection. It says webkitDeprecatedPeerConnection is an undefined function, it means, it does not exists.
Also, PeerConnection flag is enabled.
Linux Ubuntu 12 (32 bits)
Windows 7 Ultimate (64 bits)
PS: Excuse me for my english, my native language is Spanish.
You can see that webkitDeprecatedPeerConnection is no longer supported on Chrome, right now!!
We now have a new W3C editor's draft to work with. This draft, which
can be found at http://dev.w3.org/2011/webrtc/editor/webrtc.html ,
makes it possible for us to move forward with our implementation of
PeerConnection.
To keep the code base manageable, we will be removing
DeprecatedPeerConnection from the API. This change will affect Canary
and Dev versions soon. The newer JSEP API provides greater flexibility
and allows for easier encapsulation of other protocols. A lot has been
written about it.
For those that want a quick transition to the new API, we recommend
using the ROAP to JSEP JS library created by one of our colleagues. It
abstracts DeprecatedPeerConnection while using the newer JSEP API. It
can be found here:
http://code.google.com/p/webrtc-samples/source/browse/#svn%2Ftrunk%2Froap-jsep
Thanks,
/Serge