Hi,
I need script which do the following:
step 1: Open firefox and go to some website
step 2: wait until the page is completely loaded [i don't know how to perform this step]
step 3: click on a link using xdotool at a specified position(x,y)
step 4: if loading is done, do some task on that page using xdotool or xte [i dont know how to perform this step]

I know how to perform steps except 2 and 4.