Jump to content

i am not able to fill web form automatically by using this script?


Recommended Posts

i have written a script which works in ie9(for all sites) the same script is not working in Ie10(it works for all sites except  one site) .that particular site is developed without form tag in html.please suggest me .
 

html is:
<tbody><tr>
<td colspan="2" height="30px"></td>
 
</tr>
<tr>
<td colspan="2">
<div id="ID_SECJMP" style="display: none;"></div>
</td>
 
</tr>
<tr>
<td class="login_fields_lable" style="width: 34%;">
<span id="usernameBox" style="white-space: nowrap; vertical-align: middle;" rel="localize[login.LocalUserName]">Local&nbsp;user&nbsp;name:</span>
</td>
 
<td class="login_fields">
<input autocomplete="off" class="textfield" name="username" id="username" size="30" onkeypress="return checkEnter(event);" type="text"> </td>
 
</tr>
<tr>
<td class="login_fields_lable" style="width: 34%;">
<span id="passwordBox" style="vertical-align: middle;" rel="localize[login.password]">Password:</span>
</td>
 
<td class="login_fields">
<input autocomplete="off" class="textfield" name="password" id="password" size="30" onkeypress="return checkEnter(event);" type="password"> </td>
 
</tr>
<tr id="lang_row" style="display:none;">
<td class="login_fields_lable" style="width: 34%;">
<span id="languageBox" style="vertical-align: middle;" rel="localize[navigation.lang]">Language</span>
</td>
 
<td class="login_fields">
<select name="lang_options" id="lang_options" onchange="changeLanguage();">
<option value="en">English</option>
</select> </td>
 
</tr>
<tr id="remember_section" style="display:none;">
<td style="text-align:right;">
<br>
<span class="remember_cb">
<input id="remember_checkbox" name="remember_checkbox" value="checkboxValue" type="checkbox"> </span></td>
 
<td>
<br>
<span id="rememberBox" rel="localize[login.remember]" style="white-space: nowrap;">Remember my login information on this browser.</span>
</td>
 
</tr>
<tr>
<td>&nbsp;</td>
 
<td>
<br>
<button id="ID_LOGON" name="ID_LOGON" type="button" onclick="signIn(); return false;" rel="localize[login.loginButton]">Log&nbsp;In</button>
<!--<button id="lang_button" onclick="javascript:showLang()" style="display:none;width: 25px; max-width: 25px; min-width: 25px;">EN</button>-->
</td>
 
</tr>
<tr><td></td>
<td id="ID_SPNEGO_FRAME" style="display: none">
<button tabindex="5" id="ID_SPNEGO" name="ID_SPNEGO" onclick="javascript:signInSpnego();return false;" rel="localize[login.zeroSignIn]">HP Zero Sign In</button>
</td>
</tr>
<tr><td colspan="2" id="messageSection">
<!-- Highlight / Error -->
<div id="ID_LOGIN_FAILED_CUSTOM" style="display: none;"></div>
<div id="ID_LOGIN_DELAY" style="display: none;"></div>
<div id="VALIDATION_ERROR" style="display: none;"></div>
<div id="ID_LOGOUT_REASON" style="display: none;"></div>
</td>
</tr>
</tbody>
Edited by chandana
Added code tags
Link to comment
Share on other sites

  • Moderators

chandana,

As well as using code tags (see how much nicer it looks? ;)) please also post in the correct section of the forum. I have moved the thread for you this time - please take more care in future. :)

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

chandana,

As well as using code tags (see how much nicer it looks? ;)) please also post in the correct section of the forum. I have moved the thread for you this time - please take more care in future. :)

M23

thank you, this is first time i used this forum .I will make sure this wont happen again

Link to comment
Share on other sites

In the future, please wrap your code in the proper code tags (see the blue autoit button in the toolbar) so that your code is easier to read.

Take a look at _IEGetObjById in the help file.

tried but no use...

Link to comment
Share on other sites

  • Moderators

chandana,

You have caused more moderation problems than anyone else over the past few days. You started off by posting in the wrong section and now you have started posting the same questions multiple times. Please start behaving sensibly or you will find that you cannot post at all. :naughty:

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

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