I am new to ruby and hence need some help in defining a dynamic array.
What I need to do is this:
- I have 5 browsers open in my desktop.
- I want to assign them browser id’s 1,2,3,4,5 (should be dynamic,
since 5 browsers, so using 5 browser id’s). 1 way I thought was to use
the window handle (hwnd) for each of the open browser.
- So I used hwnd method and am storing it like @browserID = ie.hwnd.
But I want the browserID to be a dynamic array which would increment
everytime a new browser is open and will store the value of its window
Can anyone help me create a dynamic array and store the hwnd to it as
and when a browser is open? Even if you can help me with the basics of
using a dynamic array, I would be satisfied.