The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 895 - File: showthread.php PHP 7.2.34 (Linux)
File Line Function
/showthread.php 895 errorHandler->error




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Selecting website Combobox item by index
#1
Hey guys, I am having some trouble finding an answer for this in the forums. Please correct me if there is already an answer.

I am trying to run a loop to download pdf's from a website by selecting each item in a dropdown combobox one at a time and hitting the "View Bill" button to download the pdf before selecting the next combobox item.

Below is the loop I have created but it throws a syntax error when the variable is set as the combobox item to choose as shown below.

   

I am trying to set the variable as the item's index number so starting at index 1 and stopping at index 55(0 is covered in a previous script)

It works fine when putting the actual index number in instead of the "i" variable but it would be a pain writing out 55 of the same script.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)