WiseOwl Training - Established 1992 Wise Owl Training

Established May 1992
30 years in business
Wise Owl Training
30 years in business
See 527 reviews for our classroom and online training

Details for sivuddu

sivuddu has participated in the following threads:

Added by sivuddu on 22 May 2021 at 17:21

I am able execute code written by WiseOwl, but i am trying execute code for site - https://fedai.org.in even i am unable to find elements by id or by name etc...

 

Tab "Rates" > Report as under

*Revaluation Rates

Lates 2 excel reports to be extracted 

Need to create folder and report name as Revaluation Rates with respective date.

getting error at object variable or withblock variable not set at HTMLButtons(0).Click because need to close pop-up screen and then need to extract the files

Option Explicit

Sub BrowseToSiteToGetXML1()

    Dim IE As New SHDocVw.InternetExplorer

    Dim XetraHTMLDoc As MSHTML.HTMLDocument

    Dim HTMLButtons As MSHTML.IHTMLElementCollection

    Dim HTMLInput As MSHTML.IHTMLElement

   

    IE.Visible = True

    IE.Navigate "https://www.fedai.org.in/"

   

    Do While IE.ReadyState <> READYSTATE_COMPLETE Or IE.Busy  'Wait until site is ready

    Loop

    Set XetraHTMLDoc = IE.Document

    Set HTMLButtons = XetraHTMLDoc.getElementsByTagName("button")

    HTMLButtons(0).Click

End Sub