public void ReadMarketPlace(StoreCollectedItemData storeCollectedItemData) { SearchItemsLoader searchItemsLoader = new SearchItemsLoader(); KeyInputCode[][] keyInputCodes = searchItemsLoader.LoadSearchItems(); string[] searchItems = searchItemsLoader.LoadItemsFromFile(); for (int i = 0; i < keyInputCodes.Length; i++) { MS.ClearItem(); MS.EnterItem(keyInputCodes[i]); MS.SearchItem(); Thread.Sleep(1300); ReadAllItemPages(searchItems[i], storeCollectedItemData); } }