Scenario - Need to capture the price of a product on a website by opening one browser at a time and use data scraping to capture the data and extract into excel.
Ex: search for laptop price in one browser and open another browser and search for price of phone and so on and on, depending on the no.of entries in excel. When all search requests are completed, capture the data retrieved (Price) for all the products (Across all browsers) into excel. I have been using dynamic selector as the price is dynamic
Issue: Output excel has captured the price of first product correctly into excel. When second product was searched, it created same entry in excel that was executed in first browser. So, i am not able to understand why it is creating same entry although search results were different everytime new browser is executed. I am executing same url in multiple browser sessions.
Also, is there a way we can execute each condition in different tabs in chrome rather than opening new browser every time for testing each condition.
After extracting first product from chrome then close the tab.that would close first instance and so that same entry are not there.
use navigate url activity in loop after every search url is refreshed in same tab.
ii) (Also, is there a way we can execute each condition in different tabs in chrome rather than opening new browser every time for testing each condition.)
Use send hot keys Ctrl + T it will open a new tab at end of each loop. Then use Navigate To activity to go to any URL
Thanks Naveen -
Navigate to activity worked like a charm in current browser and was able to get different data this time.
However, I have necessity to keep the existing browser open and do not refresh the current browser with new data. Rather than, i would need to open new tab and enter URL again. I tried CTRL+t followed by Navigate to option, it opened new tab but it went back to first tab refreshed browser with URL than second tab. I also tried click activity after CTRL+T, but it did not work. Also, if we do this approach, will browser will still retain the old values again and into extractdatatable.