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.
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.
Copyright © 2021 Jogjafile Inc.
You have multiple ways:
Using lambda and CLASS_NAME:
Using CSS_SELECTOR:
Note : You have to add the following imports :
References
You can find a couple of relevant detailed discussions in: