SeleniumLibrary icon indicating copy to clipboard operation
SeleniumLibrary copied to clipboard

Switching browsers - Minimize departure session and maximize arrival.

Open gerodim opened this issue 3 years ago • 3 comments

This is a change that enables switching among multiple open browsers when executing this type of test scenarios. This is particularly important when there are multiple parallel sessions (e.g. automating a scenario where multiple users are logged in in an application and they have to interact).

gerodim avatar Dec 30 '21 09:12 gerodim

Would it make more sense to have the newly added functionality behind a toggle ?

In other words add an argument that the user can choose to do these steps on switching browsers? I think yes. This one in particular gives me hesitation in that it forces the user to do these steps without asking. One can do this already with existing keywords. This is just a convenience that although helpful forces everyone to follow this action as currently implemented.

emanlove avatar Oct 09 '22 13:10 emanlove

As I did a quick review of the open pull requests, this is one I was leaning towards rejecting because (1) it forces people to do steps they might not want to do (2) it adds to the overall keyword count when it can be done with existing keywords (3) I am not sure how widely needed or requested it is (again given it can be done with existing keywords).

emanlove avatar Oct 09 '22 13:10 emanlove

As I did a quick review of the open pull requests, this is one I was leaning towards rejecting because (1) it forces people to do steps they might not want to do (2) it adds to the overall keyword count when it can be done with existing keywords (3) I am not sure how widely needed or requested it is (again given it can be done with existing keywords).

My Pov: Either have this sort of extra functionality behind a optional keyword argument or move the functionality to separate plugin - seleniumtestability definitely could take this - but even there, it would be good to be behind feature flag ..

rasjani avatar Oct 12 '22 19:10 rasjani