Salesforce Lightning Blueprint

Technical mapping for AGENSTAB Browser navigation within the Salesforce Lightning Experience (LEX) environment.

1. App Launcher Navigation

The Salesforce App Launcher is a complex Shadow-DOM element. AGENSTAB uses **Tier 2 Semantic DOM** to resolve the grid structure.

Elementagent_id
App Launcher Icon`sf_app_launcher_trigger`
Search Apps Input`sf_app_search_box`
Sales App Link`sf_app_sales_link`

2. Lead Management Lifecycle

Standard flow for Lead creation and conversion.

3. Shadow DOM Resolution Strategy

Salesforce Web Components (LWC) utilize deep Shadow Roots. Standard Selenium/Playwright selectors often fail. AGENSTAB's **AXTree Engine** flattens these roots into a single semantic tree, allowing agents to access `input` and `button` elements as if they were top-level nodes.


# Python Example: Creating a Lead
await agent.navigate("https://na1.salesforce.com/lightning/o/Lead/list")
await agent.click(agent_id="sf_lead_new_btn")
await agent.type(agent_id="sf_lead_firstname", text="Alex")
await agent.type(agent_id="sf_lead_lastname", text="Rivera")
await agent.click(agent_id="sf_lead_save_btn")