Currently Browsing

Posts Tagged ‘ Chrome ’

Introducing Nightwatch.js

Nightwatch.js is a testing solution that lets you use JavaScript to write browser-based, end-to-end tests. Nightwatch can also be used for writing Node.js unit tests. Nightwatch is written in Node.js and using the W3C WebDriver API (formerly Selenium WebDriver).


Make your manual testing faster with Vysor

Testing Android devices can be frustrating. Entering long texts, taking screenshots and screen recordings, transferring files from the Android device to PC, losing time just with putting down – picking up the deviceScreen capture from Vysor. All these things can be forgotten if You could use the Android device on your PC.
There are many apps available for screen mirroring and Vysor is one of them. Vysor is a Chrome extension developed by ClockworkMod. Because it’s a Chrome extension it is compatible with almost all operating system and devices. Vysor works using ADB (Android Debug Bridge). The Chrome app automatically detects any ADB-enabled device connected to the computer. With a few simple steps the phone or tablet screen will be available on the PC with full control over it. It has a free and a paid version. Free version, with screen mirroring and screenshotting, is probably enough for most of the users. If you want some more functionalities like higher quality mirroring, fullscreen mode, sharing, drag and drop option, paid version is for you.


How to set up Vysor?

How to run parallel tests with Selenium WebDriver and TestNG in Chrome browser and in Internet Explorer browser

In the previous lesson(How to run parallel tests with Selenium WebDriver and TestNG) we used Firefox browser to run the tests.
Now we introduce how to run the tests parallel in Chrome and in Internet Explorer browsers.

Firstly download the latest chromedriver and IEDriverServer files.
You can download the IEDriverServer file from the site. My opinion is that use the 32-bit version, because the 64-bit version is in some cases are too slow.
The chromedriver download site is .
In this case my opinion is that use the chromedriver_win_26.0.xxxx version (this version is released in Jan 2013). There are newer versions, like chromedriver_win32_2.1 (Jul 9 2013) and maybe this version is good, but the previous versions, like 2.0, are not worked perfectly.

Put the downloaded and unzipped files to a folder.
In Advanced system settings/ Environment Variables update the Path:
In to the Path variable add:
–    The location of the two file (in my case):      C:\SeleniumDrivers;

If you want to use Chrome browser, follow the steps:
Now (as in the previous lesson) open command prompt (with administrator privileges).
Go to c:\ and enter the following line to start Selenium Grid:
java -jar selenium-server-standalone-2.33.0.jar -role hub -port 4444
Open a new command prompt window, go to c:\ and enter the following line to register the browser to the Selenium Grid:
java -jar selenium-server-standalone-2.33.0.jar -role node -hub http://localhost:4444/grid/register -browser browserName=chrome,maxInstances=3
Here is the code for it: