aadityajain08
New Member
- Joined
- Nov 20, 2018
- Messages
- 9
Hi,
I am new to the VBA and don't have any knowledge. I have an requirement where in i need to reset the defaults for the user. I am currently able to login to website, navigate to website and able to click on the link. Upon clicking the link, a popup window appear and i need to uncheck the flag on the popup window. I am not able to select any field on the popup page. To navigate on the parent page, i was using get element by id but seems same is not working on popup page.
Code to navigate on parent page:
Set varitm12 = IE.document.getelementbyid("ptifrmtgtframe").contentWindow.document.all.Item("OPR_DEF_PM_WRK_OPR_DEF_APVCHR_PB")
varitm12.Focus
varitm12.Click
I need to access the below element undr:
<input name="OPR_DEF_TBL_AP_PYMNT_RCRD_FLG$chk" id="OPR_DEF_TBL_AP_PYMNT_RCRD_FLG$chk" type="hidden" value="Y">
<input name="OPR_DEF_TBL_AP_PYMNT_RCRD_FLG" tabindex="30" class="PSCHECKBOX" id="OPR_DEF_TBL_AP_PYMNT_RCRD_FLG" type="checkbox" checked="checked" value="Y" *******="setupTimeout2(); this.form.OPR_DEF_TBL_AP_PYMNT_RCRD_FLG$chk.value=(this.checked?'Y':'N');doFocus_win0(this,false,true);"><label class="PSCHECKBOX" id="OPR_DEF_TBL_AP_PYMNT_RCRD_FLG_LBL" for="OPR_DEF_TBL_AP_PYMNT_RCRD_FLG">Record Payment</label>
Please suggest.
Regards:
Aditya
I am new to the VBA and don't have any knowledge. I have an requirement where in i need to reset the defaults for the user. I am currently able to login to website, navigate to website and able to click on the link. Upon clicking the link, a popup window appear and i need to uncheck the flag on the popup window. I am not able to select any field on the popup page. To navigate on the parent page, i was using get element by id but seems same is not working on popup page.
Code to navigate on parent page:
Set varitm12 = IE.document.getelementbyid("ptifrmtgtframe").contentWindow.document.all.Item("OPR_DEF_PM_WRK_OPR_DEF_APVCHR_PB")
varitm12.Focus
varitm12.Click
I need to access the below element undr:
<input name="OPR_DEF_TBL_AP_PYMNT_RCRD_FLG$chk" id="OPR_DEF_TBL_AP_PYMNT_RCRD_FLG$chk" type="hidden" value="Y">
<input name="OPR_DEF_TBL_AP_PYMNT_RCRD_FLG" tabindex="30" class="PSCHECKBOX" id="OPR_DEF_TBL_AP_PYMNT_RCRD_FLG" type="checkbox" checked="checked" value="Y" *******="setupTimeout2(); this.form.OPR_DEF_TBL_AP_PYMNT_RCRD_FLG$chk.value=(this.checked?'Y':'N');doFocus_win0(this,false,true);"><label class="PSCHECKBOX" id="OPR_DEF_TBL_AP_PYMNT_RCRD_FLG_LBL" for="OPR_DEF_TBL_AP_PYMNT_RCRD_FLG">Record Payment</label>
Please suggest.
Regards:
Aditya