java - running selenium webdriver test cases against multiple browsers -


i new selenium testing. want run selenium test cases on multiple browsers against internet explorer, firefox, opera , chrome. approach have follow. can people please suggest me best process.

does selenium web driver supports multiple browsers or not???

we had written login script. runs successful firefox, chrome , internet explorer individually. want run multiple browsers sequentially.

web driver supports multiple browsers of course, there support mobile

chromedriver

iediver

firefoxdriver

operadriver

androiddriver

here exemple run same tests in multiple browsers.

package ma.glasnost.test;  import org.openqa.selenium.remote.desiredcapabilities; import org.openqa.selenium.remote.remotewebdriver;         ......... desiredcapabilities[] browserlist = {desiredcapabilities.chrome(),desiredcapabilities.firefox(),desiredcapabilities.internetexplorer(), desiredcapabilities.opera()}; (desiredcapabilities browser : browserlist) {     try {         system.out.println("testing in browser: "+browser.getbrowsername());         driver = new remotewebdriver(new url("http://127.0.0.1:8080/..."), browser); 

hope helps.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -