In our automation testing, we use controls directly in scripts
But recently there was some changes and we spent lots of time replacing each and every statement with new control
So i was thinking to move this "Pages.HtmlPage.textdropdown" to a library file with name "DropdownField" and access it in scripts.
I tried like
1) HtmlSelect dropdown List= Pages.HtmlPage.textdropdown;
2) Pages.HtmlPage.textdropdown DropdownField
But i am getting error like Pages.HtmlPage is a property but used like a type.
Any method for accessing html element from a library ?