- thegoatboy
- Posts : 4
Join date : 2012-07-03
c# PageFactory - issue initializing elements
Fri Nov 01, 2019 8:40 pm
Hello,
First time poster :-)
I'm currently trying to build a framework using selenium and c#.
Previously I had used pagefactory, but I can't seem to get it to initialise.
At the moment I have a base page file which is initialising the pagefactory
At the top of my homepage I am defining an element
Any ideas on what could be missing?
Also, I've seen that pagefactory has been depreciated.
what are people using instead these days?
Thanks
tgb
First time poster :-)
I'm currently trying to build a framework using selenium and c#.
Previously I had used pagefactory, but I can't seem to get it to initialise.
At the moment I have a base page file which is initialising the pagefactory
- Code:
public Page()
{
PageFactory.InitElements(Driver, this);
}
- Code:
homepage : Page
At the top of my homepage I am defining an element
- Code:
[FindsBy(How = How.Id, Using = "sign-up-btn")]
private IWebElement signUpButton;
Any ideas on what could be missing?
Also, I've seen that pagefactory has been depreciated.
what are people using instead these days?
Thanks
tgb
Permissions in this forum:
You cannot reply to topics in this forum
|
|