Telefonica / toolium

Wrapper tool of Selenium and Appium libraries to test web and mobile applications in a single project
Apache License 2.0
115 stars 62 forks source link

is it possible to open 2 browsers? #238

Closed DuXspace closed 3 years ago

DuXspace commented 3 years ago

I looked in code and didn't find a possibility to open 2 browsers, and i don't clearly understand how it initializing in test secure_area = LoginPageObject().open().login(user)

rgonalo commented 3 years ago

Hi @DuXspace , A second browser can be opened and used this way:

second_wrapper = DriverWrapper()
second_wrapper.connect()
secure_area = LoginPageObject(second_wrapper).open().login(user)

as can be seen in https://toolium.readthedocs.io/en/latest/multiple_drivers.html#multiple-simultaneous-drivers

Besides this test shows an example opening two browsers: https://github.com/Telefonica/toolium-examples/blob/master/web_behave/features/multiple_drivers.feature https://github.com/Telefonica/toolium-examples/blob/master/web_behave/steps/multiple_drivers.py

DuXspace commented 3 years ago

Yep thank you! I have already found the same solution!