Service Virtualization

 View Only
  • 1.  How to resize browser window size when using Selenium test step prior to version 8.3

    Posted Nov 12, 2015 04:41 AM

    In version 8.3, function to specify browser window size has been implemented.

    Release Information - DevTest Solutions - 8.3 - CA Technologies Documentation

    229287, 00132653Window resize with SeleniumAdded support for browser window resize functionality.

     

    When using prior to version 8.3, is there a work-around to specify the browser size?



  • 2.  Re: How to resize browser window size when using Selenium test step prior to version 8.3

    Broadcom Employee
    Posted Nov 12, 2015 09:12 AM

    What version of DevTest are you having this Selenium issue with?



  • 3.  Re: How to resize browser window size when using Selenium test step prior to version 8.3

    Posted Nov 12, 2015 10:14 PM

    We use version 8.0.2.



  • 4.  Re: How to resize browser window size when using Selenium test step prior to version 8.3

    Posted Nov 13, 2015 04:48 AM

    In version 8.0.2 and Firefox, by using the Firefox profile, it could specify the window size.

    But, workaround of Chrome has not been found.



  • 5.  Re: How to resize browser window size when using Selenium test step prior to version 8.3

    Posted Nov 17, 2015 11:15 AM

    Hi Masateru,

     

    Could you explain the steps to specify window size. Is there a property which we need to specify in config?

     

    Thanks,

    Ankush



  • 6.  Re: How to resize browser window size when using Selenium test step prior to version 8.3

    Posted Nov 17, 2015 10:56 PM

    The steps to specify window size in Firefox (in the case of over 34) is as follows. in DevTest 8.0.2.

    1. Create new Firefox Profile and save it.
    2. Open the "xulstore.json" file that is in Firefox profile folder.
    3. Modify the value of "main-window". as bellow.
      • "width": "600", "height": "500"
    4. Select all files in the Firefox profile folder and zip them.
    5. Encode zip file in Base64 and get strings.
    6. Copy "_selenium-config.json" file and rename it to "selenium-config.json" in DevTest home folder and open it.
    7. Modify the value of "firefox_profile" and paste the strings that is encoded in Base64.
    8. Run DevTest test case or test suite. Maybe.. it works fine!


  • 7.  Re: How to resize browser window size when using Selenium test step prior to version 8.3

    Posted Nov 17, 2015 12:30 PM


    Hello,

     

    There is a DevTest patch for Window resize which works fine with IE, FF and Chrome. Reach out to your DevTest admin to get it.

     

    Thanks!



  • 8.  Re: How to resize browser window size when using Selenium test step prior to version 8.3
    Best Answer

    Posted Nov 25, 2015 05:18 AM

    Thank you so much!

    I contacted CA support, and i got a patch that supports Selenium setWindowSize action.

    It works fine with 8.0.2.