javascript
Aerofiler Snippets Javascript
// Aerofiler Search Results Selector 1st column
.ag-header-viewport .ag-header-container .ag-header-row:nth-child(1) .ag-header-cell:nth-child(1) span.ag-header-cell-text
// Aerofiler Dashboard page - doc activity area- click 1st doc link
document.querySelector("#actTable tbody tr:nth-child(1) a").click()
// Locate and button using attribute value
document.querySelector("button[data-target='#relatedDocsModal']").click()
document.querySelector("button[data-target='#relatedDocsModal'][data-toggle='modal']").click()
//Search page - get number of doc titles in search results
document.querySelectorAll("div[col-id=title] .wrap").length
//////////////////
//for(count=1;count<=5;count++)
{
// console.log(document.querySelectorAll("div[role='gridcell'][col-id='startDate']")[count].textContent);
//document.querySelectorAll("div[role='gridcell'][col-id='startDate']")[count].textContent;
}
// document.querySelectorAll("div[col-id=title] .wrap")[count].innerText;
//document.querySelectorAll("div[col-id='title'] .wrap")[count].textContent;
//document.querySelectorAll("div[role='gridcell'][col-id='startDate']").textContent
var titles=document.querySelectorAll("div[role='gridcell'][col-id='startDate']");
console.log(titles[1].textContent);
Was this helpful?
Similar Posts