Results 1 to 6 of 6

Thread: Grasping data in the web: how to write in a calendar
Thanks Thanks: 0 Likes Likes: 0

  1. #1
    Board Regular
    Join Date
    Sep 2017
    Posts
    383
    Post Thanks / Like
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Default Grasping data in the web: how to write in a calendar

    Hello everybody.

    I'm grasping data in the web via Excel.

    I'm stuck in inserting a date in a calendar: how can I write the desired date in this one?



    HTML Code:
    <td class="Input" style="width:100%;"><span 
    
    id="Date1_dateInput_wrapper" class="riS RadInput RadInput_Black" 
    
    style="display:block;width:100%;"><input id="Date1_dateInput" 
    
    name="DatePicker1dateInput" class="riBox riEnabled" 
    
    value="01/02/2019" type="text" />



    This is my unsuccessfull attempt (not errors but nothing happens).

    Code:
    HTMLdoc.getElementById("Date1_dateInput").Value = "30/01/2019"

    Thank's.

  2. #2
    Board Regular
    Join Date
    Jan 2014
    Location
    Dublin, Ireland
    Posts
    1,421
    Post Thanks / Like
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Grasping data in the web: how to write in a calendar

    what if you change .Value to .innerText?
    Learn something new everyday.

    be sure to use code tags

    Code:
    [ code ]
    [ / code ]
    ' no spaces

  3. #3
    Board Regular
    Join Date
    Sep 2017
    Posts
    383
    Post Thanks / Like
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Grasping data in the web: how to write in a calendar

    Quote Originally Posted by BarryL View Post
    what if you change .Value to .innerText?
    Yes, I can write with .innerText, neverthless when I click "Search" the output is not about 30/01/2019 but about today, the default set date.
    Maybe something more articulate has to be done.

  4. #4
    Board Regular
    Join Date
    Jan 2014
    Location
    Dublin, Ireland
    Posts
    1,421
    Post Thanks / Like
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Grasping data in the web: how to write in a calendar

    How are you "clicking" the search button? is this a public web page?
    Learn something new everyday.

    be sure to use code tags

    Code:
    [ code ]
    [ / code ]
    ' no spaces

  5. #5
    Board Regular
    Join Date
    Sep 2017
    Posts
    383
    Post Thanks / Like
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Grasping data in the web: how to write in a calendar

    I'm clicking with the following instruction:

    Code:
    HTMLdoc.getElementById("Search").Click
    Unfortunately it is an intranet page not surfable from outside the company.

    About the date, manually I can either select the date in the calendar or write "30/01/2019".

  6. #6
    Board Regular
    Join Date
    Sep 2017
    Posts
    383
    Post Thanks / Like
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Grasping data in the web: how to write in a calendar

    I'm tinkering about. Now, error in this line:

    Code:
    HTMLdoc.getElementById("Date1_dateInput").Value = "30/01/2019"
    Run-Time error '438': Object Doesn't support this property or method

Some videos you may like

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •