How to write code in the Expert View for a Search engine?

Pl. I need help in writing code in the Expert View for a Search engine. As we search ex: 'apple' it gets a Search criteria with (1 2 3 4....Next) pages. so it suppose to click the "Next" button until "Next" is disable. As i'm doing data driven for search criteria by recording with clicking 5 times "Next" button but when in the Run session some criteria is not displaying the same no.of pages...So, how do i write a script to click each page in Search criteria. Pl. i need help in this
Thxs

Editorial / Best Answer

Answered by: Guest

  • Jan 12th, 2007


You can use object spy to get the name of the first page number (i.e. the "#1" button string will have either a 1 or a 0 in its string.)

Then you can change this to a variable(say "x") and then use descriptive programming for the string.

You will then have a Loop statement (preferably a For...Next Loop) to check on the max number of page number links that are available on the primary screen (say 5 is the max) and see if "Next Button" is still high lighted.

If it is, click on next after reaching 5 till "Next button" is disabled or does not exist.

When Next button is disabled, the Value of "x" is the total number of result pages(ie if the #1 link starts with a logical number of 1) and x +1 if the #1 link starts with a logical number of 0.

Showing Answers 1 - 3 of 3 Answers

Guest

  • Jan 12th, 2007
 

You can use object spy to get the name of the first page number (i.e. the "#1" button string will have either a 1 or a 0 in its string.)

Then you can change this to a variable(say "x") and then use descriptive programming for the string.

You will then have a Loop statement (preferably a For...Next Loop) to check on the max number of page number links that are available on the primary screen (say 5 is the max) and see if "Next Button" is still high lighted.

If it is, click on next after reaching 5 till "Next button" is disabled or does not exist.

When Next button is disabled, the Value of "x" is the total number of result pages(ie if the #1 link starts with a logical number of 1) and x +1 if the #1 link starts with a logical number of 0.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions