selenium webdriver – A number of browser assist

0
18
selenium webdriver – A number of browser assist


Cross Browser testing has a develop into a significant a part of any automation and a superb QA firm will at all times use this logic of their automation frameworks.

When you’ve got carried out Chrome in your framework, then there are 02 methods utilizing which you’ll execute your scripts on different browsers –

Possibility 1:
Replace your current ‘Webriver load technique’ with the code to load IE and Firefox driver. You might have so as to add some capabilities together with this as properly. Including Capabilities will resolve many of the challenges –

For Firefox use capabilities like –

capabilities.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);
capabilities.setCapability("os_version", "10");
capabilities.setCapability("browser", "Firefox");
capabilities.setCapability("browser_version", "78.0");
capabilities.setCapability("os", "Home windows")
            

For IE, sure pre-requisites are talked about under –
a) Allow protected mode.
b) Replace Browser zoom settings to 100%
c) Use solely 32 bit driver even in case you are utilizing 64 bit machine.

Use under capabilities –

capabilities.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS, true);
capabilities.setCapability("ensureCleanSession", true);
capabilities.setCapability("ignoreZoomSetting", true);
capabilities.setCapability("ignoreProtectedModeSettings", true);
capabilities.setCapability("ignore-certificate-error", true);
capabilities.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);

You may as well strive on Edge utilizing capabilities like –

  capabilities.setCapability("os_version", "10");
  capabilities.setCapability("browser", "Edge");
  capabilities.setCapability("browser_version", "83.0");
  capabilities.setCapability("os", "Home windows");

Possibility 2:
These days, most {of professional} QA corporations whether or not within the discipline of Safety testing providers or Software program testing providers, BrowserStack is getting extensively used. In case your code is stringent to replace, you need to use this cloud expertise the place you need to use execute your take a look at scripts on cloud browsers by writing a separate file to invoke distant browsers.

Be aware : BrowserStack is a paid software however affords trial model as properly.

LEAVE A REPLY

Please enter your comment!
Please enter your name here