LambdaTest Community

Find answers, support, and inspiration from other users

LambdaTest Community

How can I automate eCommerce website using Selenium?

I want some guidance on how i can automate eCommerce website using Selenium. Can anyone please provide it to me.

Up Vote Down Vote 0 Votes
Posted 4 months ago


What Kind Automation You Need For Ecommerce ?

Let's Asussume That You Need To Fetch Price From XYZ SITE Than You Have To Know xpath / css path of price element and you can get this path from your browser through inspect element And Than Paste Same Path On Selenium Drive And Lookup

driver.FindElement(By.CssSelector("#rightbar > .menup > li:nth-of-type(3) > h5"));

driver.FindElement(By.XPath("//*[@id='rightbar2? ]/ul/li[3]/h5"));

Up Vote Down Vote 0 Votes
Posted 2 months ago