Forum Discussion

autotester36's avatar
autotester36
New Contributor
4 years ago
Solved

Navigating to test URL when company has preset home page

We run our tests against the Edge browser. My company has Edge preset to open to the company news page and we are unable to change the setting to open to a blank page as recommended in the Preparing Edge browser documentation. The company just launched a new news site and it's causing errors when we run our tests. The new site is slow to load and also briefly redirects to a 2nd URL. We have tried different things in our script such as opening a blank page before navigating to the test URL or waiting for the news page to load (not ideal because its slow and still causes an occasional error).

 

Another idea is to submit a ticket for all the machines we run the project on to request that we be able to modify the Edge setting. We are trying to avoid this because we're worried that any Windows updates on those machines will revert the settings.

 

Has anyone else dealt with this or have any ideas?

  • Hi Marsha,

     

    Thank you for your reply. It's an in house application.

     

    In addition to asking the question here, I had submitted a ticket with SmartBear and they were able to provide me with a script that allows you to pass the URL as a command line argument to the browser.  This is currently working for us in legacy Edge:

     

     Browsers.Item(browserName).RunOptions = "url" 

     Browsers.Item(browserName).Run();

     

    The following is expected to work with Chromium Edge:

    Browsers.Item(browserName).RunOptions = "--homepage url"
    Browsers.Item(browserName).Run();

3 Replies

  • Marsha_R's avatar
    Marsha_R
    Champion Level 3

    Is your application only being used in-house or is it for outside customers?  If you have outside customers, I would push for being able to modify the Edge setting.  Your customers won't have the news page and you need to be able to test without it.

     

    You might try that on one or two machines first and let them cycle through a Windows update just to see if it really causes a problem or not.

    • autotester36's avatar
      autotester36
      New Contributor

      Hi Marsha,

       

      Thank you for your reply. It's an in house application.

       

      In addition to asking the question here, I had submitted a ticket with SmartBear and they were able to provide me with a script that allows you to pass the URL as a command line argument to the browser.  This is currently working for us in legacy Edge:

       

       Browsers.Item(browserName).RunOptions = "url" 

       Browsers.Item(browserName).Run();

       

      The following is expected to work with Chromium Edge:

      Browsers.Item(browserName).RunOptions = "--homepage url"
      Browsers.Item(browserName).Run();

    • sonya_m's avatar
      sonya_m
      SmartBear Alumni (Retired)

      This is a great idea, Marsha.

       

      Hi autotester36 ! Did you have a chance to give this approach a go? What's your result?