My current routine was:
Open a webpage
Send keys for short cut of Inspect Element
Find the specific element tags
Send keys delete to delete the html tags (e.g
)
Take a screenshot
Is there a way not opening an inspect element window and make my process fast?
The example would be deleting specific < div >. My flow works fine actually but I want to lessen the process like opening window of inspect element and searching for the element < div > tag.
Have you tested with the Inject Js Script activity? For example, the following Javascript code will remove the YouTube logo:
function RemoveElement() {
var element = document.querySelector("#logo-icon-container");
if (element) {
element.parentNode.removeChild(element);
alert("Removed element!");
}
}