What will be the control flow for it in design model. I want to go in Amazon website, there search for mobile section. After that I want to pick up 5th mobile and add to cart. Then same 5th mobile i want to delete

what will be the control flow for it in design model. I want to go in Amazon website, there search for mobile section. After that I want to pick up 5th mobile and add to cart. Then same 5th mobile i want to delete.

@Nilesh_Kamdi

  • Open Browser and Navigate to Amazon:
  • Use the Open Browser activity to open Amazon’s website.
  • Search for Mobile Section:
  • Use the Type Into activity to enter “mobile” into the search bar.
  • Use the Click activity to click the search button.
  • Select the 5th Mobile:
  • Use the Data Scraping activity to extract the list of mobiles from the search results.
  • Use the Click activity to click on the 5th mobile.
  • Add to Cart:
  • Use the Click activity to click on the “Add to Cart” button.
  • Go to Cart and Remove the 5th Mobile:
  • Use the Navigate To activity to go to the cart.
  • Use the Click activity to remove the 5th mobile from the cart.
    *** follow the steps accordingly**

Hi @Nilesh_Kamdi

Use the UI activities for this, check the below workflow,
→ Use the Use application\browser activity and indicate the amazon.in web application.
→ Inside of it insert the Type into and click activity to enter the user name, password and click to login.
→ After that use the Type into activity to search for the mobile in the search box.
→ After Type into activity insert the Assign activity and create a variable called Count which is int32 datatype.

- Assign -> Count = 5

→ Then use the For each Ui element activity and indicate on first mobile then it will automatically extract all the mobile products. Output of For each Ui element is CurrentElement.
→ Inside For each insert the If condition to check the count,

- Condition -> Count.equals(5)

→ Inside then block insert the Click activity and pass the CurrentElemnt to the Input element field in properties.
→ Outside for each insert the click activity and indicate on add to cart to add the product to the cart.

Hope it helps!!