pythonseleniumfindallfindbyfindelement

We have @FindBys and @FindAll in Selenium Java, how to use same code to find locators in Python


We have @FindBys and @FindAll in Selenium Java, how to use same code to find locators in Python?

@FindBys( { @FindBy(className = "class1") @FindBy(className = "class2")} )

Please guide me someone.


Solution

  • You have multiple ways:


    References

    You can find a couple of relevant detailed discussions in: