TAR(1) BSD General Commands Manual TAR(1)
-C, --directory DIR
change to directory DIR
function Make-LLD () {
$vpns= @()
For ($i=1; $i -le 3; $i++){
$VPNName = 'xxxx'
$VPNStatus = 'yyy'
if ($VPNName -eq 'NoSuchInstance'){Break}
$vpns += @{'#VPN.NAME' = $VPNName; '#VPN.NAME.STATUS' = $VPNStatus}
}
return ConvertTo-Json @{"data" = [array]$vpns} -Compress
}
Write-Host $(Make-LLD)
.\array_json_Ex.ps1
{"data":[{"#VPN.NAME":"xxxx","#VPN.NAME.STATUS":"yyy"},{"#VPN.NAME":"xxxx","#VPN
.NAME.STATUS":"yyy"},{"#VPN.NAME":"xxxx","#VPN.NAME.STATUS":"yyy"}]}
wait.Until(x => {
var size =
x.FindElement(By.CssSelector(selector)).GetAttribute("value").Length;
if (size >= 5) {
return true;
} else {
Console.Error.Write("waiting for specific text length");
return false;
}
});
setCellReference(CellReference ref)
setCellReference(java.lang.String ref)
костыль но сойдет