Sign in to follow this  
Followers 0
themajestic08

Search for a value

3 posts in this topic

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.

Share this post


Link to post
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!

Share this post


Link to post
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")

Share this post


Link to post
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
Sign in to follow this  
Followers 0