Technical mapping for AGENSTAB Browser navigation within the Salesforce Lightning Experience (LEX) environment.
The Salesforce App Launcher is a complex Shadow-DOM element. AGENSTAB uses **Tier 2 Semantic DOM** to resolve the grid structure.
| Element | agent_id |
|---|---|
| App Launcher Icon | `sf_app_launcher_trigger` |
| Search Apps Input | `sf_app_search_box` |
| Sales App Link | `sf_app_sales_link` |
Standard flow for Lead creation and conversion.
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")