Jump to content

Search for a value


Recommended Posts

Hi folks

Does anyone have any scripts handy that can search for a value returned by a search

Basically I want to do the following on a web page:

enter the name e.g John Doe, click search, search returns 50 results, 10 per page

Using the persons address in a recordset, look through the addresses returned on page 1, if not there, click next, check next page until address is found then click on it.

Link to comment
Share on other sites

Hi.

[howto search results

Please post what you have coded so far and give examples of what you are searching for.

use

autoit

and

/autoit

in squared brackets to get syntax coloring here.

Regards, Rudi.

Earth is flat, pigs can fly, and Nuclear Power is SAFE!

Link to comment
Share on other sites

Hi.

Please post what you have coded so far and give examples of what you are searching for.

use

autoit

and

/autoit

in squared brackets to get syntax coloring here.

Regards, Rudi.

All I have so far is this:

WinWaitActive("Customer")

$oIE = _IEAttach("Customer")

$oForm = _IEFormGetObjByName($oIE,"Form1")

$oSurname=_IEFormElementGetObjByName($oForm,"txtSurname")

_IEFormElementSetValue($oSurname, "Kelly")

$oQuery = _IEFormElementGetObjByName($oForm, "btnSearch")

_IEAction($oQuery,"click")

;50 Results are returned, 10 per page

;This is where I need some sort of search function where the code will check through the results

;attach to the result that matches the address

;if it doesn't find any results on this page, it will click a 'Next' button on the page

;and search the next set of results

$oIE = _IEAttach("Customer")

_IELinkClickByText($oIE,"Test Address")

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...