Skip to content

How to apply the Pool selenium to seleniumbase #1719

Answered by mdmintz
sunny9495-dev asked this question in Q&A

You must be logged in to vote

You can use parameterization for repetitive actions. Eg: https://github.com/seleniumbase/SeleniumBase/blob/master/examples/parameterized_test.py

In your case, the test would look like this:

import random
from parameterized import parameterized
from seleniumbase import BaseCase
BaseCase.main(__name__, __file__, "-n=5")

class ParameterizedTests(BaseCase):
    @parameterized.expand(
        [
            ["https://wordpress.com/create-website/"],
            ["https://www.tumblr.com/register?source=login_register_header_mobile"],
            ["https://squareup.com/signup"],
            ["https://en.over-blog.com/"],
            ["https://issuu.com/signup?plan=free"],
        ]
    )
    def t…

Replies: 1 comment

You must be logged in to vote
0 replies
Answer selected by mdmintz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants