Sign in to follow this  
Followers 0
boyd108

_IEFormElementOptionSelect causes other options to reset

4 posts in this topic

I have a series of options on an IE page that I set using _IEFormElementOptionselect. On their own, each one works perfectly fine, but for some reason, there is one that if I set it using _IEFormElementOptionselect, it resets another field back to it's default.

This only occurs with these two options. The other ones are unaffected either way.

My code looks like this:

$oIEProject = _IEGetObjByName($oIE, "ctl00$ctl00$SubMasterContents$MainContent$ddlMilestone")
$oIEVer = _IEGetObjByName($oIE, "ctl00$ctl00$SubMasterContents$MainContent$ddlVersion")
$oIETeam = _IEGetObjById($oIE, "ddlFeature")
$oIEModule = _IEGetObjByName($oIE, "ctl00$ctl00$SubMasterContents$MainContent$ddlModule")
$oIEPriority = _IEGetObjByName($oIE, "ctl00$ctl00$SubMasterContents$MainContent$ddlPriority")
$oIERepro = _IEGetObjByName($oIE, "ctl00$ctl00$SubMasterContents$MainContent$ddlReproducibility")
_IEFormElementOptionSelect($oIEProject, "Test", 1, "byText")
_IEFormElementOptionSelect($oIEVer, 1, 1, "byIndex")
_IEFormElementOptionSelect($oIETeam, $oTeam, 1, "byText")
_IEFormElementOptionSelect($oIEModule, $oModule, 1, "byText")
_IEFormElementOptionSelect($oIEPriority, $oPriority, 1, "byText")
_IEFormElementOptionSelect($oIERepro, $oRepro, 1, "byText")

Whenever I run the line for $oIEPRoject line, it makes it so I can't set the $oIETeam one. In reverse order, it will just reset the $oIETeam one.

Any ideas?

Share this post


Link to post
Share on other sites



What happens when you select the options manually? You could also look at the $f_fireEvent option for IEFormElementOptionselect, see if that prevents the options from resetting.

1 person likes this

While ProcessExists('Andrews bad day.exe')
	BlockInput(1)
	SoundPlay('Music.wav')
	SoundSetWaveVolume('Louder')
WEnd

Share this post


Link to post
Share on other sites

Ah, that worked perfectly! Thank you for the suggestion.

_IEFormElementOptionSelect($oIEProject, "Test", 1, "byText", 0)

Share this post


Link to post
Share on other sites

Your very welcome, glad it worked for you.


While ProcessExists('Andrews bad day.exe')
	BlockInput(1)
	SoundPlay('Music.wav')
	SoundSetWaveVolume('Louder')
WEnd

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