简体   繁体   中英

how can i control whether two different accounts can call or not at the same time in selenium using Java?

I am doing a project and I am testing everything in a program like Skype. Through this program, we can do internet calls. I can't test whether two different accounts can call or not at the same time. I am using Selenium. Can anyone help me?

Just create two instances of WebDriver:

WebDriver driver1 = new FirefoxDriver();
driver1.get("http://your-application");
WebDriver driver2 = new FirefoxDriver();
driver2.get("http://your-application");
// login with driver1 and driver2

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM