Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 99408

Select object on selenium's PageFactory

$
0
0

I know that you cannot initialize a Select object in PageFactory. I have been searching on the internet and have found only one possible answer, to use ElementLocatorFactory but did not have much details on the implementation. Im asking if their is someone who successfully implemented it or has idea on implementing it, im okay with other ways than ElementLocatorFactory.

Currently, Im only using something like this:

@FindBy(how = How.ID, using = "select-log-status")
public WebElement __logStatus;
public Select selectLogStatus() {
    return new Select(__logStatus);
}

What im looking for to implement is something like this.

@FindSelectBy(how = How.ID, using = "select-log-status")
public Select selectLogStatus;

PS. Im new to selenium and a returning java developer, so please treat me well :)


Viewing all articles
Browse latest Browse all 99408

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>