what PageFactory.initElements(driver,this) does ???

23 views
Skip to first unread message

Ram Narayan

unread,
Sep 27, 2016, 2:04:36 AM9/27/16
to Selenium Users
It's written everywhere that it initializes the WebElements. what exactly this means ? 

Is this to replace driver.findelement(By.id("xyz")); by @FindBy(id="xyz") private WebElement ele; as a result of we get the methods of WebElement interface ?

Both places we need to initialize the WebDriver instance right. Can someone clarify the doubt ?

Thanks !

ramnarayan patro

unread,
Sep 27, 2016, 2:31:52 AM9/27/16
to seleniu...@googlegroups.com
got it !

--
You received this message because you are subscribed to a topic in the Google Groups "Selenium Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/selenium-users/-2QyrMxpL8U/unsubscribe.
To unsubscribe from this group and all its topics, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/0067eb4f-e5a6-4258-b047-6a43f517c418%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages