Element manual update (Element Editor) - pearlxcore/Shopee-Autobuy-Bot GitHub Wiki
- Open "Element Editor" window.
-
Determine the specific element on the Shopee website to be updated. For example 'Buy Now' button.
-
On Chrome browser, right-click on the element you want to update. In the context menu, select "Inspect Element." This opens Chrome's DevTools panel.
- The relevant HTML element for your selected element should be highlighted. Right-click on the highlighted element and in the context menu, choose "Copy" and then select "Copy XPath." This action will copy the Xpath of the element to your clipboard.
- Return to Element Editor window. Paste the Xpath that you copied in Step 4 using the keyboard shortcut (Ctrl+V or Command+V).
You can use either of these formats :
//button[contains(@class, 'btn btn-solid-primary btn--l') and contains(text(), 'buy now')]
//*[@id="main"]/div/div[2]/div[1]/div[1]/div/div[2]/section[1]/section[2]/div/div[5]/div/div/button[2]