Click A Button Defined As A Div With A Svg Linked To A Path With Vba
I am making an Excel sheet that takes pictures from a webshop and places them on Pinterest. When I try to submit the image URL I can't find the element to perform a click event. Fu
Solution 1:
I am not sure the div is clickable but you can select the div with css attribute = value selector
ie.document.querySelector("[data-test-id='website-link-submit-button']")
You can get the svg with
ie.document.querySelector("[aria-label=Verzenden]")
You can get the path with
ie.document.querySelector("[aria-label=Verzenden] > title + path")
You can click by adding
.click
or
.FireEvent "onclick"
to the end of the above e.g.
ie.document.querySelector("[aria-label=Verzenden]").click
ie.document.querySelector("[aria-label=Verzenden] > title + path").FireEvent "onclick"
Post a Comment for "Click A Button Defined As A Div With A Svg Linked To A Path With Vba"