Forum Stats

  • 3,875,465 Users
  • 2,266,926 Discussions
  • 7,912,225 Comments

Discussions

OATS script for multiple browsers

Pankaj7
Pankaj7 Member Posts: 1
edited Jun 20, 2018 1:33PM in QA/Testing

Can we  run same OATS script for multiple browsers?

what we  need to do  for run the script  on multiple browsers  and multiple instances

Answers

  • avsr
    avsr Member Posts: 6
    edited May 29, 2018 9:00AM

    Oats scripts will support with different browsers for run the script, if we have select either "Internet Explorer/Firefox/Chrome" then as per selection it will run and find the settings in attachment.5-29-2018 6-18-25 PM.jpg

  • 1009458
    1009458 Member Posts: 5
    edited Jun 20, 2018 1:33PM

    If you wanted to do this dynamically in the java code you could try something like:


             browser.setBrowserType(BrowserType.InternetExplorer);
             browser.launch();
             delay(5000);
             browser.close();
            

    or


             browser.setBrowserType(BrowserType.Chrome);
             browser.launch();
             delay(5000);
             browser.close();

    you could even data drive the browser type if  you wanted to ...

This discussion has been closed.