Closed Thread
Results 1 to 10 of 10

Get Element , Data-Automation-ID

  1. #1
    Forum Contributor
    Join Date
    07-17-2012
    Location
    India
    MS-Off Ver
    Excel 2016
    Posts
    713

    Get Element , Data-Automation-ID

    Hi,

    I am so far good on entering text value by getting web element ID. but i came across "Data_Automation-ID", and i get debug error saying "Object not found 424"

    input tabindex="0" class="gwt-TextBox WGUY" aria-label="search" type="text" placeholder="search" data-automation-id="globalSearchInput"></input

    Can you please tell me, if there is a way to do it? Like other element ID, i want to enter text value in input filed of "globalSearchInput"

    Thanks
    Keep the Forum clean :


    1. Use [ code ] code tags [ /code ]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    2. Show appreciation to those who have helped you by clicking * Add Reputation below their posts.
    3. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Get Element , Data-Automation-ID

    Can you post the current code?
    If posting code please use code tags, see here.

  3. #3
    Forum Contributor
    Join Date
    07-17-2012
    Location
    India
    MS-Off Ver
    Excel 2016
    Posts
    713

    Re: Get Element , Data-Automation-ID

    Thanks for your reply.

    Global ie As InternetExplorer
    Global lastrow As Long
    Global a, b, c As String
    Global i, j, k, l As Integer

    Sub AUTO()

    Set ie = CreateObject("InternetExplorer.Application")
    ie.Visible = True

    ie.Navigate Trim("https://Id3-impl.source.com/osourc/d/search.htmld?q=create+position")
    Call pageload(ie)


    For i = 3 To Sheets("Shiva").Range("A" & Rows.Count).End(xlUp).Row
    delay 4

    ie.document.getElementById("promptOption-gwt-uid-2").Click ' This works
    delay 5

    ie.document.getElementById("globalSearchInput").Value = Trim(Sheets("Shiva").Range("A" & i).Value) ' error 424, object not found

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Get Element , Data-Automation-ID

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Click on Edit to open your thread, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)

  5. #5
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Get Element , Data-Automation-ID

    You're more likely to get constructive help if you post the actual link you are using.

    Also:

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Click on Edit to open your thread, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)

  6. #6
    Forum Contributor
    Join Date
    07-17-2012
    Location
    India
    MS-Off Ver
    Excel 2016
    Posts
    713

    Re: Get Element , Data-Automation-ID

    hello,

    Link is valid, but as it inside the office one unless you have access to the link it wont open.
    I did code the codes as per rule. But when i submit it, it gives me error that due to site firewall i should not be putting HTML code.

    Hence i had to do it like this.

  7. #7
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Get Element , Data-Automation-ID

    I can post your code in code tags.

    Please Login or Register  to view this content.
    I can also post your HTML in html tags.
    HTML Code: 

  8. #8
    Forum Contributor
    Join Date
    07-17-2012
    Location
    India
    MS-Off Ver
    Excel 2016
    Posts
    713

    Re: Get Element , Data-Automation-ID

    ohh. my apologies. I think it gave me error when i tried to put HTML code using tag #. am sorry for it.

  9. #9
    Registered User
    Join Date
    08-25-2023
    Location
    TX, USA
    MS-Off Ver
    365
    Posts
    2

    Re: Get Element , Data-Automation-ID

    Was a solution to this ever found?

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: Get Element , Data-Automation-ID

    You keep responding to old threads.

    I suggest, if you need help with this, that you open your own new thread.

    Thread closed.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. IE Automation - How to update input element and update
    By sumdumgai in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-12-2017, 05:43 PM
  2. Replies: 12
    Last Post: 01-14-2014, 01:56 PM
  3. Replies: 0
    Last Post: 08-17-2013, 02:55 PM
  4. [SOLVED] Stat table with formulas for each data element but only when the element exists in table
    By stevemills04 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-28-2013, 05:50 AM
  5. automation error - element not found
    By NickyC in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 07-14-2011, 03:18 AM
  6. Sorting, finding dulicates, moving one data element up, deleting original data
    By rickwtx in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 01-13-2011, 07:32 PM
  7. [SOLVED] Automation Error - Element Not Found
    By Jordan in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-12-2005, 05:05 PM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1