Jump to content

Drop down box handling in Web application


Recommended Posts

Hi Friends,

I am planning to automate a web application and the challenges that I found are as follows. Please help with your expertise

I am eager to know how to perform below scenarios without using mouse click option.

1. How to select a value from a drop down of a web application?

2. How check a radio button?

3. How to manipulate an editable PDF form?

Edited by delfin
Link to comment
Share on other sites

For the first two, see the _IEFormElement*Select funtions.

For the third, you need to have Adobe standard edition to get the OLE object model (otherwise it is back to Mouse Clicks). This is something I'm working on now and just getting started... If anyone has any experience here, please let me know...

Dale

p.s. there is also an open source project called iText that allows Adobe form manipulation, but I'm not certain it is accessible from AuotIt

Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y

Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Link to comment
Share on other sites

Thanks Dale.

Here I face another problem. In the first page itself I have a dropdown with 30 values and it comes under a form with 'no name' (form name is blank) in it.

This page comes after a login page and I tried the below code to select a value but nothing happens in application.

$oForm1= _IEFormGetObjByName($oIE, "")

$oSelect = _IEFormElementGetObjByName ($oForm1, "Lender_ID")

_IEFormElementOptionselect ($oSelect, "1000", 1, "byValue")

Link to comment
Share on other sites

Please read the Remarks in the helpfile for any of the _IE*ByName* functions.

Dale

Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y

Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

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...