Jump to content
Sign in to follow this  
delfin

Drop down box handling in Web application

Recommended Posts

delfin

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

Share this post


Link to post
Share on other sites
DaleHohm

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

Share this post


Link to post
Share on other sites
delfin

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")

Share this post


Link to post
Share on other sites
DaleHohm

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

Share this post


Link to post
Share on other sites
delfin

Thanks Dale, I solved using 'By index'.

I couldnt make it through 'By name'

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.