Recording Tests with Firefox, Chrome and Other Browsers

WAPT Pro is integrated with the most popular browsers: Internet Explorer, Firefox and Chrome. You can use any of them to record user sessions for your test. You can also use any other external browser running on the same or different system as well as on a mobile device.

By default WAPT Pro uses the embedded Internet Explorer window to record virtual user profiles. In most cases this is the most convenient way, because you do all the things inside one application. When running the test, WAPT Pro does not use any browser. It performs all the work itself. It can generate thousands virtual users from a single system, whereas it would be hardly possible to launch so many browser instances.

However in real world people use different browsers, and in some cases it is important to emulate a specific one. A web site can deliver significantly different content depending on the client browser. Some sites can be accessed only from a specific browser or a mobile device.

When working with a web site, the browser identifies itself by passing the corresponding value inside the "User-Agent" header of each HTTP request. Web site can use this information to provide browser-specific content. Even though you can easily change the value of that header in WAPT Pro, you may face a situation when web site provides totally different responses during the test run, because a different User-Agent is specified. So, the right way in such cases is to record the whole test using the browser that you want to emulate.

Let's see how to do this. WAPT Pro records tests by inserting itself as an HTTP proxy between the browser and the web site. Since all the requests sent from the browser have to pass through this proxy, it can record them. However such configuration also allows any external browser to connect to that proxy. In this case WAPT Pro will record all requests sent by that external browser too.

Let's open the Recorder tab in WAPT Pro settings. Here you see the Recorder options.

Recorder Proxy IP is the IP for Recorder proxy. You can select the necessary value in the combo-box with the list of all IPs available on your system.

Recorder Proxy Port is the port that WAPT Pro uses for listening for a browser connection.

Use browser proxy settings: Depending on this option, WAPT Pro Recorder proxy can take the current proxy settings of the browser that was selected for recording and use them. By default this option is turned on, and Recorder proxy uses the proxy configuration of selected browser.
If the Use browser proxy settings option is turned off, Recorder will connect to the tested web server using a direct connection (without using a proxy server).

Click the Rec button in WAPT Pro to start recording.

Note that if you are using some external browser (other than Internet Explorer), the Delete Temporary Internet files (cache) and Delete Cookies options will not work for it. So, if you want to record a "clean" session, you should delete the browser cache and cookies in that browser manually.

Select the External Browser option and choose a desired browser for recording in the combo-box below. After you click "OK", you will see a separate window of selected browser. Now you can start working with your web site in the browser. All your actions will be recorded and added to the profile.

You may only notice one difference. Since WAPT Pro is no longer integrated with the browser window, it cannot distinguish between page requests, sub-requests (ones initiated automatically as a result of processing page in the browser) and page elements. It records all requests in one long list. However, you can put this in order manually. After recording, you can select any elements in that list and drag them under parent request. You can also select sub-requests, right-click on them and choose Convert to page elements.

Manual Configuration

In the drop-down list of external browsers there is a special option Manual Configuration.

You can use this option in case you want to record profiles in a browser which is not included in the list of supported browsers on your system, or if you use a browser on another computer or mobile device for recording.

WAPT Pro works as a proxy between your browser and the target web site. You can use any browser running on your system or any other system on your LAN, including mobile devices connected via Wi-Fi. You only need to set the proxy settings of external browser, so that for connection to your web site it would use HTTP proxy specified in a special instruction of WAPT Pro window. This instruction appears after you click the Rec button on the toolbar and select the option Manual Configuration. You need to copy IP address and port number from this instruction.

Note that if IP is equal to (localhost), then you will be able to record tests only in the browser of local computer. To record from remote computer, you need to specify the actual IP address of that computer in the Recorder settings of WAPT Pro.

After you click the Rec button and select the option Manual Configuration, WAPT Pro Recorder will be waiting for connection of external browser.

All your actions that you perform with the web site in the browser window will be recorded in the form of HTTP requests. They will appear in the left view. To stop recording, click the Stop Rec button on the toolbar of WAPT Pro. After that you can restore the regular proxy settings of external browser used for recording.

Next page