public void EditManageListings() { // Creates a toggle for the given test, adds all log events under it test = extent.StartTest("Cancel a share skill"); // Create an class and object to call the method ManageListing obj = new ManageListing(); ShareSkill ssobj = new ShareSkill(); obj.EditManageListings(); //ssobj.ClickonShareSkillBtn(); ssobj.ShareProfile("Save"); }