Need to input code on a webpage after clicking checkbox

vikas0903

New Member
Joined
Dec 17, 2013
Messages
20
Hi All,
I am trying to tick a checkbox and input code in text box appearing after that. URL is:
https://www.dillards.com/webapp/wcs...D1QyDu6J3CC1j4g==&ddkey=https:RememberMeLogon

[[if it asks user name passwords, please use vikas_manit@rediffmail.com & Abc1234. It's a dummy account.]

I am able to tick the checkbox but not able to input code in text box appearing below that. My code is :
'*********'ticking checkbok
IEapp.document.getElementById("giftCardSelect").Click
While IEapp.Busy
Wend
Do While IEapp.ReadyState <> 4
DoEvents
Loop
Sleep (10000)
'********************entering value

For Each myEL In IEapp.document.all
If myEL.ID = "gc-id" Then
'ActiveWorkbook.Activate
'Sheets("Sheet2").Select
i = 0
While i < myEL.Length
If myEL(i).Name = "giftCertificate" Then
myEL(i).value = "43745332"
End If
i = i + 1
Wend
Exit For
End If
Next
'************

Please help me in figuring out how to fix this error.

Relevant html code is given below:
<div class="gc-form">
<div class="gift-card" id="gc-id">

<input type="checkbox" id="giftCardSelect" name="giftCardSelect" >
<label for="giftCcardLabel">Use My Gift Card</label>
<div class="hidden-form-gc">
<input type="tel" name="giftCertificate" size="20" value="" onblur="javascript:trimMe(this);checkShowPin(this.value)" onkeyup="javascript:checkShowPin(this.value)" />
<div class="hidden-form-gc-pin">
<label for="giftCardPin">PIN</label>
<input type="text" name="pin" size="3" value="" onblur="javascript:trimMe(this)" id="gcPin" style="">
</div>
<div class="action-item">
<a class="secondary" href="javascript:void(0);" *******="javascript:submitForm2(document.orderReviewForm, 'Apply'); return false;" class="apply">Apply</a>
</div>

Thanks in advance for your help.
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)

Forum statistics

Threads
1,215,473
Messages
6,125,020
Members
449,203
Latest member
tungnmqn90

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top