function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
sandeep varma indukurisandeep varma indukuri 

write a test class for Navigate to Leads, Create Lead, Update Lead

Navigate to lead tab
User has login access to Salesforce
Able to Navigate to Leads Tab
No Access to Leads Tab
Marketing Representative
All CMS Users
Use Case 01
Ramu_SFDCRamu_SFDC
Can you please explain your requirement further as the description is not that clear. If you want to navigate to another page through apex, you can do it using pagereference methods, Refer to the below article for more information on this

https://www.salesforce.com/us/developer/docs/pages/Content/pages_quick_start_controller_navigation_methods.htm
sandeep varma indukurisandeep varma indukuri
Actually my case is when the user logins to salesforce he should navigate to Leads tab and he must view the list of data in lead