Badboy Recording Compatibility fun test

Source: Internet
Author: User

Badboy recording by default is to start IE browser, when using Badboy recording script, when the test system is not compatible with IE browser, you need to consider changing the browser, modified for other browsers (such as Firefox, Chrome) recording, only need to set the browser as the default browser, When you start Badboy, the icon for the recording address bar browser automatically changes to the default browser icon.

problem: start badboy recording (Record browser is IE10), page tip is as follows:

According to the URL of the page prompt, found the application package code path, confirm the application code is no problem, manually in the IE10 browser access to the system, the system is incompatible with the browser, the page jumps to the browser reminder page.

Below I have manually tried Firefox, Chrome, 360 speed access to the system address, OK, the system can open the login page normally, there is no compatibility problem.

Find the program code to determine the browser compatibility Common.js file, if the browser is not compatible, will jump to the above browser reminder page, program code:

//determine Browser versionfunctionbrowser () {if(!! Window. ActiveXObject | | "ActiveXObject"inchwindow) {              if(Navigator.userAgent.indexOf ("MSIE 6.0") >0 | | navigator.userAgent.indexOf ("MSIE 7.0") >0 | | Navigator.userAgent.indexOf ("MSIE 8.0") >0){                 //alert ("1111 your browser version is too low, please upgrade to IE11 (included) version above!") "); Broser_url (); }             if(Navigator.userAgent.indexOf ("MSIE 9.0") >0 &&!window.innerwidth) {//Here's the point, you know.              //alert ("2222 your browser version is too low, please upgrade to IE11 (included) version above!") ");Broser_url (); }             if(Navigator.userAgent.indexOf ("MSIE 9.0") >0 | | navigator.userAgent.indexOf ("MSIE 10.0") >0){               //alert ("3333 your browser version is too low, please upgrade to IE11 (included) version above!") ");Broser_url (); }      }Else if((window.navigator.mimetypes[40] | | |!window.navigator.mimeTypes.length)) {        //alert (IS360SE ());        //alert ("360 Browser! ");}Else if(Navigator.userAgent.indexOf ("Chrome")! =-1) {        //alert ("Chrome");}Else if(Navigator.userAgent.indexOf ("Safari")! =-1) {         //alert ("Safari");}Else if(Navigator.userAgent.indexOf ("Qqbrowser")! =-1) {        //alert ("Qqbrowser");    }     Else if(Navigator.userAgent.indexOf ("Firefox")! =-1) {         //alert ("Firefox");    }    Else{        //alert (' Unrecognized browser. ');Broser_url (); }  }

Test one: Badboy recording using the Firefox browser

"Script error" will still be prompted,

In order to find the boot recording to access the system, is the execution of which line of code, in the Common.js file added alert () prompt, to start the recording access system again,

Badboy is still IE10 browser when recording (this may be the reason behind it!). ),

Test two: Badboy recording with a Chrome browser

Try again and set up chrome as your default browser so that Badboy will start the chrome recording when it's recorded. Manually access the test address on the browser and test it.

But the results were unexpected, and Badboy was still considered a IE10 browser when recording,

Test three: Badboy recording with 360 browser
Try again, set the 360 browser as the default browser, and manually try the validity of the Common.js judgment.

Start Badboy use 360 browser to record, the result is still the same,

Conclusion: Badboy Recording browser is always the default is IE browser, as for the reason, may be related to the local system, it may be badboy recording the underlying default is the IE kernel, and badboy recorded browser compatibility issues (set the default browser), it is only convenient for users to record scripts in the way.

Badboy Recording Compatibility fun test

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.