I have Username in Xl file. I did the Data Driven for username, With that I've Craeted a new User, Its Listed in the Page.
When I click that user it will navigate to the User Details Page, To do that I've used
HtmlAnchor a = Find.ByExpression<HtmlAnchor>(
Now, In the NAvigated Page, I've Link "DeleteUser", If Click that, User should be deleted, I tried the Same abovecode for "deleteuser"
System.NullReferenceException: Object reference not set to an instance of an object.
Can't i use the same htmlanchor for deleteuser?
Also Another question, If there is no data driven How should the click works with the find expression
HtmlAnchor a = Find.ByExpression<HtmlAnchor>("tagname = a" ,"InnerText = Test_Admin","TextContent=Test_admin");
Click 'TestAdminLink3''. ---> System.NullReferenceException: Object reference not set to an instance of an object.