How to filter by Azure Storage Account Container using KQL? - kql

I've almost got the perfect KQL query! I'm just missing the ability to filter the Log Analytics Workbook by Storage Container.
Issue:
The ContainerName column is calculated so I'm unsure how to use the where clause for filtering.
Sample data:
datatable(TimeGenerated: datetime, AccountName: string, OperationName: string, Uri: string )[
datetime(2022-10-04 03:07:06.07), "stgtest", "CreatePathFile", "https://stgtest.blob.core.windows.net:443/cont-1/subdir-1/test1.txt?se=2022-10-06T18%3A40%3A10Z&sig=XXXXX&sp=rwl&spr=https&sr=c&sv=2021-04-10&timeout=900",
datetime(2022-10-04 03:07:06.08), "stgtest", "CreatePathFile", "https://stgtest.blob.core.windows.net:443/cont-1/subdir-1/test2.txt?se=2022-10-06T18%3A40%3A10Z&sig=XXXXX&sp=rwl&spr=https&sr=c&sv=2021-04-10&timeout=900",
datetime(2022-10-04 03:07:06.13), "stgtest", "LeaseFile", "https://stgtest.blob.core.windows.net:443/cont-1/subdir-1/test1.txt?se=2022-10-06T18%3A40%3A10Z&sig=XXXXX&sp=rwl&spr=https&sr=c&sv=2021-04-10&timeout=900",
datetime(2022-10-04 03:07:06.13), "stgtest", "LeaseFile", "https://stgtest.blob.core.windows.net:443/cont-1/subdir-1/test2.txt?se=2022-10-06T18%3A40%3A10Z&sig=XXXXX&sp=rwl&spr=https&sr=c&sv=2021-04-10&timeout=900",
datetime(2022-10-04 03:07:07.10), "stgtest", "AppendFile", "https://stgtest.blob.core.windows.net:443/cont-1/subdir-1/test2.txt?se=2022-10-06T18%3A40%3A10Z&sig=XXXXX&sp=rwl&spr=https&sr=c&sv=2021-04-10&timeout=900",
datetime(2022-10-04 03:07:07.10), "stgtest", "AppendFile", "https://stgtest.blob.core.windows.net:443/cont-1/subdir-1/test2.txt?se=2022-10-06T18%3A40%3A10Z&sig=XXXXX&sp=rwl&spr=https&sr=c&sv=2021-04-10&timeout=900",
datetime(2022-10-04 03:07:07.11), "stgtest", "AppendFile", "https://stgtest.blob.core.windows.net:443/cont-1/subdir-1/test1.txt?se=2022-10-06T18%3A40%3A10Z&sig=XXXXX&sp=rwl&spr=https&sr=c&sv=2021-04-10&timeout=900",
datetime(2022-10-04 03:07:07.12), "stgtest", "AppendFile", "https://stgtest.blob.core.windows.net:443/cont-1/subdir-1/test1.txt?se=2022-10-06T18%3A40%3A10Z&sig=XXXXX&sp=rwl&spr=https&sr=c&sv=2021-04-10&timeout=900",
datetime(2022-10-04 03:07:07.28), "stgtest", "AppendFile", "https://stgtest.blob.core.windows.net:443/cont-1/subdir-1/test1.txt?se=2022-10-06T18%3A40%3A10Z&sig=XXXXX&sp=rwl&spr=https&sr=c&sv=2021-04-10&timeout=900",
datetime(2022-10-04 03:07:07.33), "stgtest", "AppendFile", "https://stgtest.blob.core.windows.net:443/cont-1/subdir-1/test2.txt?se=2022-10-06T18%3A40%3A10Z&sig=XXXXX&sp=rwl&spr=https&sr=c&sv=2021-04-10&timeout=900",
datetime(2022-10-04 03:07:07.35), "stgtest", "AppendFile", "https://stgtest.blob.core.windows.net:443/cont-1/subdir-1/test2.txt?se=2022-10-06T18%3A40%3A10Z&sig=XXXXX&sp=rwl&spr=https&sr=c&sv=2021-04-10&timeout=900",
datetime(2022-10-04 03:07:07.40), "stgtest", "AppendFile", "https://stgtest.blob.core.windows.net:443/cont-1/subdir-1/test1.txt?se=2022-10-06T18%3A40%3A10Z&sig=XXXXX&sp=rwl&spr=https&sr=c&sv=2021-04-10&timeout=900",
datetime(2022-10-04 03:07:07.41), "stgtest", "AppendFile", "https://stgtest.blob.core.windows.net:443/cont-1/subdir-1/test1.txt?se=2022-10-06T18%3A40%3A10Z&sig=XXXXX&sp=rwl&spr=https&sr=c&sv=2021-04-10&timeout=900",
datetime(2022-10-04 03:07:07.59), "stgtest", "AppendFile", "https://stgtest.blob.core.windows.net:443/cont-1/subdir-1/test2.txt?se=2022-10-06T18%3A40%3A10Z&sig=XXXXX&sp=rwl&spr=https&sr=c&sv=2021-04-10&timeout=900",
datetime(2022-10-04 03:07:07.59), "stgtest", "AppendFile", "https://stgtest.blob.core.windows.net:443/cont-1/subdir-1/test1.txt?se=2022-10-06T18%3A40%3A10Z&sig=XXXXX&sp=rwl&spr=https&sr=c&sv=2021-04-10&timeout=900",
datetime(2022-10-04 03:07:07.60), "stgtest", "AppendFile", "https://stgtest.blob.core.windows.net:443/cont-1/subdir-1/test1.txt?se=2022-10-06T18%3A40%3A10Z&sig=XXXXX&sp=rwl&spr=https&sr=c&sv=2021-04-10&timeout=900",
datetime(2022-10-04 03:07:07.60), "stgtest", "AppendFile", "https://stgtest.blob.core.windows.net:443/cont-1/subdir-1/test1.txt?se=2022-10-06T18%3A40%3A10Z&sig=XXXXX&sp=rwl&spr=https&sr=c&sv=2021-04-10&timeout=900",
datetime(2022-10-04 03:07:07.61), "stgtest", "AppendFile", "https://stgtest.blob.core.windows.net:443/cont-1/subdir-1/test1.txt?se=2022-10-06T18%3A40%3A10Z&sig=XXXXX&sp=rwl&spr=https&sr=c&sv=2021-04-10&timeout=900",
datetime(2022-10-04 03:07:07.61), "stgtest", "AppendFile", "https://stgtest.blob.core.windows.net:443/cont-1/subdir-1/test2.txt?se=2022-10-06T18%3A40%3A10Z&sig=XXXXX&sp=rwl&spr=https&sr=c&sv=2021-04-10&timeout=900",
datetime(2022-10-04 03:07:07.62), "stgtest", "AppendFile", "https://stgtest.blob.core.windows.net:443/cont-1/subdir-1/test1.txt?se=2022-10-06T18%3A40%3A10Z&sig=XXXXX&sp=rwl&spr=https&sr=c&sv=2021-04-10&timeout=900",
datetime(2022-10-04 03:07:07.62), "stgtest", "AppendFile", "https://stgtest.blob.core.windows.net:443/cont-1/subdir-1/test2.txt?se=2022-10-06T18%3A40%3A10Z&sig=XXXXX&sp=rwl&spr=https&sr=c&sv=2021-04-10&timeout=900",
datetime(2022-10-04 03:07:07.63), "stgtest", "AppendFile", "https://stgtest.blob.core.windows.net:443/cont-1/subdir-1/test1.txt?se=2022-10-06T18%3A40%3A10Z&sig=XXXXX&sp=rwl&spr=https&sr=c&sv=2021-04-10&timeout=900",
datetime(2022-10-04 03:07:07.64), "stgtest", "AppendFile", "https://stgtest.blob.core.windows.net:443/cont-1/subdir-1/test1.txt?se=2022-10-06T18%3A40%3A10Z&sig=XXXXX&sp=rwl&spr=https&sr=c&sv=2021-04-10&timeout=900",
datetime(2022-10-04 03:07:07.65), "stgtest", "AppendFile", "https://stgtest.blob.core.windows.net:443/cont-1/subdir-1/test2.txt?se=2022-10-06T18%3A40%3A10Z&sig=XXXXX&sp=rwl&spr=https&sr=c&sv=2021-04-10&timeout=900",
datetime(2022-10-04 03:07:07.66), "stgtest", "AppendFile", "https://stgtest.blob.core.windows.net:443/cont-1/subdir-1/test1.txt?se=2022-10-06T18%3A40%3A10Z&sig=XXXXX&sp=rwl&spr=https&sr=c&sv=2021-04-10&timeout=900",
datetime(2022-10-04 03:07:07.66), "stgtest", "AppendFile", "https://stgtest.blob.core.windows.net:443/cont-1/subdir-1/test1.txt?se=2022-10-06T18%3A40%3A10Z&sig=XXXXX&sp=rwl&spr=https&sr=c&sv=2021-04-10&timeout=900",
datetime(2022-10-04 03:07:07.67), "stgtest", "AppendFile", "https://stgtest.blob.core.windows.net:443/cont-1/subdir-1/test1.txt?se=2022-10-06T18%3A40%3A10Z&sig=XXXXX&sp=rwl&spr=https&sr=c&sv=2021-04-10&timeout=900",
datetime(2022-10-04 03:07:07.68), "stgtest", "AppendFile", "https://stgtest.blob.core.windows.net:443/cont-1/subdir-1/test2.txt?se=2022-10-06T18%3A40%3A10Z&sig=XXXXX&sp=rwl&spr=https&sr=c&sv=2021-04-10&timeout=900",
datetime(2022-10-04 03:07:07.70), "stgtest", "AppendFile", "https://stgtest.blob.core.windows.net:443/cont-1/subdir-1/test1.txt?se=2022-10-06T18%3A40%3A10Z&sig=XXXXX&sp=rwl&spr=https&sr=c&sv=2021-04-10&timeout=900",
datetime(2022-10-04 03:07:07.87), "stgtest", "FlushFile", "https://stgtest.blob.core.windows.net:443/cont-1/subdir-1/test2.txt?se=2022-10-06T18%3A40%3A10Z&sig=XXXXX&sp=rwl&spr=https&sr=c&sv=2021-04-10&timeout=900",
datetime(2022-10-04 03:07:07.89), "stgtest", "LeaseFile", "https://stgtest.blob.core.windows.net:443/cont-1/subdir-1/test2.txt?se=2022-10-06T18%3A40%3A10Z&sig=XXXXX&sp=rwl&spr=https&sr=c&sv=2021-04-10&timeout=900",
datetime(2022-10-04 03:07:07.96), "stgtest", "CreatePathFile", "https://stgtest.blob.core.windows.net:443/cont-2/subdir-1/test3.txt?se=2022-10-06T18%3A40%3A10Z&sig=XXXXX&sp=rwl&spr=https&sr=c&sv=2021-04-10&timeout=900",
datetime(2022-10-04 03:07:07.97), "stgtest", "LeaseFile", "https://stgtest.blob.core.windows.net:443/cont-2/subdir-1/test3.txt?se=2022-10-06T18%3A40%3A10Z&sig=XXXXX&sp=rwl&spr=https&sr=c&sv=2021-04-10&timeout=900",
datetime(2022-10-04 03:07:08.29), "stgtest", "AppendFile", "https://stgtest.blob.core.windows.net:443/cont-2/subdir-1/test3txt?se=2022-10-06T18%3A40%3A10Z&sig=XXXXX&sp=rwl&spr=https&sr=c&sv=2021-04-10&timeout=900",
datetime(2022-10-04 03:07:08.29), "stgtest", "AppendFile", "https://stgtest.blob.core.windows.net:443/cont-2/subdir-1/test3txt?se=2022-10-06T18%3A40%3A10Z&sig=XXXXX&sp=rwl&spr=https&sr=c&sv=2021-04-10&timeout=900",
datetime(2022-10-04 03:07:08.29), "stgtest", "AppendFile", "https://stgtest.blob.core.windows.net:443/cont-2/subdir-1/test3txt?se=2022-10-06T18%3A40%3A10Z&sig=XXXXX&sp=rwl&spr=https&sr=c&sv=2021-04-10&timeout=900",
datetime(2022-10-04 03:07:08.30), "stgtest", "AppendFile", "https://stgtest.blob.core.windows.net:443/cont-2/subdir-1/test3txt?se=2022-10-06T18%3A40%3A10Z&sig=XXXXX&sp=rwl&spr=https&sr=c&sv=2021-04-10&timeout=900",
datetime(2022-10-04 03:07:08.31), "stgtest", "AppendFile", "https://stgtest.blob.core.windows.net:443/cont-2/subdir-1/test3txt?se=2022-10-06T18%3A40%3A10Z&sig=XXXXX&sp=rwl&spr=https&sr=c&sv=2021-04-10&timeout=900",
datetime(2022-10-04 03:07:08.32), "stgtest", "AppendFile", "https://stgtest.blob.core.windows.net:443/cont-2/subdir-1/test3txt?se=2022-10-06T18%3A40%3A10Z&sig=XXXXX&sp=rwl&spr=https&sr=c&sv=2021-04-10&timeout=900",
datetime(2022-10-04 03:07:08.32), "stgtest", "AppendFile", "https://stgtest.blob.core.windows.net:443/cont-2/subdir-1/test3txt?se=2022-10-06T18%3A40%3A10Z&sig=XXXXX&sp=rwl&spr=https&sr=c&sv=2021-04-10&timeout=900",
datetime(2022-10-04 03:07:08.60), "stgtest", "AppendFile", "https://stgtest.blob.core.windows.net:443/cont-2/subdir-1/test3txt?se=2022-10-06T18%3A40%3A10Z&sig=XXXXX&sp=rwl&spr=https&sr=c&sv=2021-04-10&timeout=900",
datetime(2022-10-04 03:07:08.64), "stgtest", "AppendFile", "https://stgtest.blob.core.windows.net:443/cont-2/subdir-1/test3txt?se=2022-10-06T18%3A40%3A10Z&sig=XXXXX&sp=rwl&spr=https&sr=c&sv=2021-04-10&timeout=900",
datetime(2022-10-04 03:07:08.65), "stgtest", "AppendFile", "https://stgtest.blob.core.windows.net:443/cont-2/subdir-1/test3txt?se=2022-10-06T18%3A40%3A10Z&sig=XXXXX&sp=rwl&spr=https&sr=c&sv=2021-04-10&timeout=900",
datetime(2022-10-04 03:07:08.65), "stgtest", "AppendFile", "https://stgtest.blob.core.windows.net:443/cont-2/subdir-1/test3txt?se=2022-10-06T18%3A40%3A10Z&sig=XXXXX&sp=rwl&spr=https&sr=c&sv=2021-04-10&timeout=900",
datetime(2022-10-04 03:07:08.68), "stgtest", "AppendFile", "https://stgtest.blob.core.windows.net:443/cont-2/subdir-1/test3txt?se=2022-10-06T18%3A40%3A10Z&sig=XXXXX&sp=rwl&spr=https&sr=c&sv=2021-04-10&timeout=900",
datetime(2022-10-04 03:07:08.70), "stgtest", "AppendFile", "https://stgtest.blob.core.windows.net:443/cont-2/subdir-1/test3txt?se=2022-10-06T18%3A40%3A10Z&sig=XXXXX&sp=rwl&spr=https&sr=c&sv=2021-04-10&timeout=900",
datetime(2022-10-04 03:07:08.70), "stgtest", "AppendFile", "https://stgtest.blob.core.windows.net:443/cont-2/subdir-1/test3txt?se=2022-10-06T18%3A40%3A10Z&sig=XXXXX&sp=rwl&spr=https&sr=c&sv=2021-04-10&timeout=900",
datetime(2022-10-04 03:07:08.72), "stgtest", "AppendFile", "https://stgtest.blob.core.windows.net:443/cont-2/subdir-1/test3txt?se=2022-10-06T18%3A40%3A10Z&sig=XXXXX&sp=rwl&spr=https&sr=c&sv=2021-04-10&timeout=900",
datetime(2022-10-04 03:07:08.72), "stgtest", "AppendFile", "https://stgtest.blob.core.windows.net:443/cont-2/subdir-1/test3txt?se=2022-10-06T18%3A40%3A10Z&sig=XXXXX&sp=rwl&spr=https&sr=c&sv=2021-04-10&timeout=900",
datetime(2022-10-04 03:07:08.79), "stgtest", "FlushFile", "https://stgtest.blob.core.windows.net:443/cont-2/subdir-1/test3txt?se=2022-10-06T18%3A40%3A10Z&sig=XXXXX&sp=rwl&spr=https&sr=c&sv=2021-04-10&timeout=900",
datetime(2022-10-04 03:07:09.05), "stgtest", "LeaseFile", "https://stgtest.blob.core.windows.net:443/cont-2/subdir-1/test3txt?se=2022-10-06T18%3A40%3A10Z&sig=XXXXX&sp=rwl&spr=https&sr=c&sv=2021-04-10&timeout=900"
];
Sample query:
//==================================================//
// Set variables
//==================================================//
let varEventTime = todatetime('2022-10-04 03:07:07.63');
let varLogStart = varEventTime - 10m;
let varLogEnd = varEventTime + 10m;
let varOperationNames = dynamic([
'AppendFile',
'CreateFilePath',
'FlushFile',
'LeaseFile']);
let varContainerNames = dynamic([
'cont-1',
'cont-2',
'cont-3',
'cont-4']);
//==================================================//
// Filter table
//==================================================//
StorageBlobLogs
| where
AccountName == 'stgtest'
and TimeGenerated between (varLogStart .. varLogEnd)
and OperationName has_any (varOperationNames)
// and ContainerName has_any (varContainerNames) // This is the issue
//==================================================//
// Create calculated columns
//==================================================//
| extend FilePath = parse_path(tostring(parse_url(Uri).Path))
| extend ContainerName = split(FilePath.DirectoryPath, '/')[1] // Because ContainerName is calculated here
| extend FileName = split(FilePath.Filename, "%2F")[-1]
//==================================================//
// Select columns
//==================================================//
| project
TimeGenerated = format_datetime(TimeGenerated, 'yyyy-MM-dd hh:mm:ss.fff'),
AccountName,
ContainerName,
OperationName,
FileName
//==================================================//
// Sort table
//==================================================//
| order by TimeGenerated asc

| where Uri has_any(varContainerNames) // Filter for performance reasons. Might get false positives.
| parse parse_url(Uri).Path with "/" container "/" *
| where container in (varContainerNames)

Related

Selenium with IE 11

I am looking forward to get below help .
I was doing Test Automation for an application in Chrome with Xpaths . It was working well. But now I have a requirement to use the same suite to do cross browser testing in IE 11 .
Currently Using 2.39 IE Webdriver for Selenium . I am able to open browser but with my X path with which had my script ,not working with X path in IE 11 .
So here is my Question
Will I be able to use the Xpath used for chrome to do automation in IE 11
Also I found Execution is slower in IE 11 when compared to chrome
Do we have any X path Checker in IE 11 similarly in Chrome,Firefox .My requirement is to check all the x paths i used for chrome works in IE or not.But i dont know how should i check .
I understand from all the forums to go with CSS instead of X path , I can also do the same but just to understand is the X path same across Chrome and IE 11
Last i would like to understand a basic thing, when we say Xpath native support not present in ie browser -what do we mean
PS : I used Capabilities Ignorezoomsetting to true,require window focus to true ,native elements to false for Internet Explorer
Thanks in Advance
Html Code :
<html><head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="white">
<link rel="shortcut icon" href="favicon.ico?v=2" type="image/x-icon">
<title>-</title>
<style data-styled-components=""></style></head>
<body>
<div id="modal"></div>
<div id="app"><div class="Flex-kFpfAw ixXCQP" overflow="auto" display="flex" width="100%"><div class="NavBarIndicator__NavBarIndicatorHtml-ibzzfP jRSwXJ"><div class="NavBarIndicator__Indicator-eUunBf jITNXW"></div><div class="NavBarIndicator__IndicatorSettings-kgrEUt cPoXyp"></div></div><div class="Header__HeaderWrapper-cPhxZP hLpJId"><img class="_NavBarMenu__MenuIcon-gZnMef eTeQZD" src="/assets/images/menu.png"><div class="Flex-kFpfAw eaWcQg" width="100%" height="100%" display="flex"><div class="Flex-kFpfAw iuKZOD" width="200px" display="flex"><div class="Flex-kFpfAw cHydLU" cursor="pointer" width="0 auto" display="flex"><a class="AnchorLink__LinkWrapper-kpcMPo iKDWLW" color="#696969" font-size="14px" font-family="OpenSans">New Client</a></div><div class="Flex-kFpfAw cHydLU" cursor="pointer" width="0 auto" display="flex"><a class="AnchorLink__LinkWrapper-kpcMPo cJfTFc" color="#696969" font-size="14px" font-family="OpenSans">Existing Client</a></div></div></div></div><div class="Flex-kFpfAw eXWVrO" width="100%" display="flex"><div class="Flex-kFpfAw kgPlre" display="flex" width="100%"><div class="Accordion__AccordionContainer-lhzlfC jUObfx" name="basicDetailsAccordion" width="100%"><div class="Accordion__ActiveBar-fUxxNn dIFKrP" width="100%"></div><div class="Accordion__TopBarContainer-eqOfxK dbwwMy"><div class="Accordion__HeaderText-btWcFX kpnLnx">BASICS</div><div class="Accordion__ArrowContainer-jgNnsk joAlIe"></div></div><div class="Accordion__ContentContainer-bNGADI dUFUSp"><div class="Grid__Row-eThVWD keRYro"><div class="Grid__Column-dzIFTK cYStlC"><div class="Dropdown__DropdownContainer-iuXXkE eGcMOz" value=""><input class="Dropdown__InputField-XdsGe saBoZ" placeholder="" value=""><div class="Dropdown__FloatingLabel-dAuMht kobteq" value="">Title</div><div class="Dropdown__baseIconStyle-hZrHDI dGulpi" value=""></div><div class="Dropdown__DescOrErrorContainer-CVXZE cVVTfy"></div><div class="Dropdown__DropdownItemsContainer-ePnZKJ jIlnqS"></div></div></div><div class="Grid__Column-dzIFTK cYStlC"><div class="TextField__Wrapper-iMDdAX jeqFJ" value=""><input class="TextField__Input-eZJwmJ hjrRW" type="text" value=""><div class="TextField__Label-hiPeUU dbpoGq" value="">Christian Name</div><span class="TextField__Text-jWKysX jCdXZa"></span><div></div></div></div></div><div class="Grid__Row-eThVWD keRYro"><div class="Grid__Column-dzIFTK cYStlC"><div class="TextField__Wrapper-iMDdAX jeqFJ" value=""><input class="TextField__Input-eZJwmJ hjrRW" type="text" value=""><div class="TextField__Label-hiPeUU dbpoGq" value="">Given Name</div><span class="TextField__Text-jWKysX jCdXZa"></span><div></div></div></div><div class="Grid__Column-dzIFTK cYStlC"><div class="TextField__Wrapper-iMDdAX jeqFJ" value=""><input class="TextField__Input-eZJwmJ hjrRW" type="text" value=""><div class="TextField__Label-hiPeUU dbpoGq" value="">Surname *</div><span class="TextField__Text-jWKysX jCdXZa"></span><div></div></div></div></div><div class="Grid__Row-eThVWD keRYro"><div class="Grid__Column-dzIFTK cYStlC"><div class="Dropdown__DropdownContainer-iuXXkE eGcMOz" value=""><input class="Dropdown__InputField-XdsGe saBoZ" placeholder="" value=""><div class="Dropdown__FloatingLabel-dAuMht kobteq" value="">Marital Status</div><div class="Dropdown__baseIconStyle-hZrHDI dGulpi" value=""></div><div class="Dropdown__DescOrErrorContainer-CVXZE cVVTfy"></div><div class="Dropdown__DropdownItemsContainer-ePnZKJ jIlnqS"></div></div></div><div class="Grid__Column-dzIFTK cYStlC"><div class="TextField__Wrapper-iMDdAX jeqFJ" value=""><input class="TextField__Input-eZJwmJ hjrRW" type="date" value=""><div class="TextField__Label-hiPeUU dbpoGq" value=""></div><span class="TextField__Text-jWKysX jCdXZa"></span><div></div></div></div></div><div class="Grid__Row-eThVWD keRYro"><div class="Grid__Column-dzIFTK cYStlC"><div class="Dropdown__DropdownContainer-iuXXkE eGcMOz" value=""><input class="Dropdown__InputField-XdsGe saBoZ" placeholder="" value=""><div class="Dropdown__FloatingLabel-dAuMht kobteq" value="">Nationality</div><div class="Dropdown__baseIconStyle-hZrHDI dGulpi" value=""></div><div class="Dropdown__DescOrErrorContainer-CVXZE cVVTfy"></div><div class="Dropdown__DropdownItemsContainer-ePnZKJ jIlnqS"></div></div></div><div class="Grid__Column-dzIFTK cYStlC"><div class="TextField__Wrapper-iMDdAX jeqFJ" value=""><input class="TextField__Input-eZJwmJ hjrRW" type="text" value=""><div class="TextField__Label-hiPeUU dbpoGq" value="">NRIC or Passport number</div><span class="TextField__Text-jWKysX jCdXZa"></span><div></div></div></div></div><div class="Grid__Row-eThVWD keRYro"><div class="Grid__Column-dzIFTK cYStlC"><div class="Flex-kFpfAw hhPbtN" height="80px" value="maleRadio" display="flex" width="100%"><div class="Radio__Header-iLHfxq epdwGX">Gender</div><div class="Flex-kFpfAw kgPlre" display="flex" width="100%"><div class="Radio__Child-iQExMs iJGsOb" value="maleRadio">Male</div><div class="Radio__Child-iQExMs gETYuF" value="femaleRadio">Female</div></div></div></div><div class="Grid__Column-dzIFTK cYStlC"><div class="Flex-kFpfAw hhPbtN" height="80px" value="smokerYesRadio" display="flex" width="100%"><div class="Radio__Header-iLHfxq epdwGX">Smoker</div><div class="Flex-kFpfAw kgPlre" display="flex" width="100%"><div class="Radio__Child-iQExMs iJGsOb" value="smokerYesRadio">Yes</div><div class="Radio__Child-iQExMs gETYuF" value="smokerNoRadio">No</div></div></div></div></div></div></div></div><div class="Flex-kFpfAw kgPlre" display="flex" width="100%"><div class="Accordion__AccordionContainer-lhzlfC iOrkBi" name="contactDetailsAccordion" width="100%"><div class="Accordion__ActiveBar-fUxxNn dRpCWJ" width="100%"></div><div class="Accordion__TopBarContainer-eqOfxK dbwwMy"><div class="Accordion__HeaderText-btWcFX kpnLnx">CONTACT</div><div class="Accordion__ArrowContainer-jgNnsk cmIaNs"></div></div></div></div><div class="Flex-kFpfAw kgPlre" display="flex" width="100%"><div class="Accordion__AccordionContainer-lhzlfC iOrkBi" name="educationDetailsAccordion" width="100%"><div class="Accordion__ActiveBar-fUxxNn dRpCWJ" width="100%"></div><div class="Accordion__TopBarContainer-eqOfxK dbwwMy"><div class="Accordion__HeaderText-btWcFX kpnLnx">EDUCATION & OCCUPATION</div><div class="Accordion__ArrowContainer-jgNnsk cmIaNs"></div></div></div></div><div class="Flex-kFpfAw kgPlre" display="flex" width="100%"><div class="Accordion__AccordionContainer-lhzlfC iOrkBi" name="othersAccordion" width="100%"><div class="Accordion__ActiveBar-fUxxNn dRpCWJ" width="100%"></div><div class="Accordion__TopBarContainer-eqOfxK dbwwMy"><div class="Accordion__HeaderText-btWcFX kpnLnx">OTHERS</div><div class="Accordion__ArrowContainer-jgNnsk cmIaNs"></div></div></div></div><div class="Flex-kFpfAw kgPlre" display="flex" width="100%"><div class="Flex-kFpfAw iJaRwj" width="100%" display="flex"><input class="Button__ButtonHtml-kIBguK eybnQU" type="submit" value="Back"><div class="Space-fYzrqg kpkBkk"></div><input class="Button__ButtonHtml-kIBguK kkGQYo" type="submit" value="Next"></div></div></div><div class="Overlay__OverlayHtml-fHbRtE iMIwlR"></div><div class="NavBarIndicator__NavBarIndicatorHtml-ibzzfP jRSwXJ"><div class="NavBarIndicator__Indicator-eUunBf jITNXW"></div><div class="NavBarIndicator__IndicatorSettings-kgrEUt cPoXyp"></div></div><div class="NavBar__NavBarHtml-AmdPv dLHKZS" color="red"><div class="NavBar__CloseButton-bbtqJM jXPpvT"><img class="NavBar__CloseIcon-kbJaLK hqvvWp" src="/assets/images/leftArrow.png"></div><a id="new-proposal" href="/client" style="text-decoration: none;"><div class="_NavBarButton__NavBarButtonHtml-jFBQvK hjgrnZ"><img class="_NavBarButton__NavBarIcon-koVGUP gjfdcG" src="/assets/images/addActive.png"><br><div class="_NavBarButton__Label-deFDME llMpjg">New Proposal</div></div></a><div class="_NavBarButton__NavBarButtonHtml-jFBQvK hjgrnZ"><img class="_NavBarButton__NavBarIcon-koVGUP gjfdcG" src="/assets/images/transaction.png"><br><div class="_NavBarButton__Label-deFDME ofuLs">Transactions</div></div><div class="_NavBarButton__NavBarButtonHtml-jFBQvK hjgrnZ"><img class="_NavBarButton__NavBarIcon-koVGUP gjfdcG" src="/assets/images/opportunity.png"><br><div class="_NavBarButton__Label-deFDME ofuLs">Opportunity</div></div><div class="NavBar__SettingsButton-gpFICj jHbjOK"><img class="NavBar__NavBarIcon-blvkXP fBFcQi" src="/assets/images/setting.png"><br><div class="NavBar__Label-eCmPLc cIziCb">Settings</div></div></div></div></div>
<script type="text/javascript" src="/assets/js/vendors~main.50b6700db1e18bf97471.js"></script><script type="text/javascript" src="/assets/js/main.50b6700db1e18bf97471.js"></script>
<!-- version: PROD --></body></html>
Will I be able to use the Xpath used for chrome to do automation in IE 11 :
The answer is No. use cssSelector , sometimes the xpath may work if it is not too much absolute. May be relative would do the job much easier.
Also I found Execution is slower in IE 11 when compared to chrome
There is no native support for xpath in IE, use again cssSelector to overcome this issue.
I understand from all the forums to go with CSS instead of X path , I can also do the same but just to understand is the X path same across Chrome and IE 11 .
No it is not same , again go with cssSelector
Last i would like to understand a basic thing, when we say Xpath native support not present in ie browser -what do we mean
It means that IE engine does not have anything for xpath , IE has to use 3rd party to get along with xpath.
Hope this will be helpful.

Element is not clickable at point ... with selenium 2 and WebDriver

today I searched a lot and found lots of information, but nothing helped.
I use selenium-java-2.53.1 and FF47 and face the following problem:
Exception in thread "main" org.openqa.selenium.WebDriverException: Element is not clickable at point (779.5, 12.199996948242188). Other element would receive the click: <header class="header"></header>
Command duration or timeout: 106 milliseconds
Build info: version: '2.53.1', revision: 'a36b8b1', time: '2016-06-30 17:32:46'
System info: host: 'spa-PC', ip: '192.168.5.2', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_74'
Driver info: org.openqa.selenium.firefox.FirefoxDriver
Capabilities [{applicationCacheEnabled=true, rotatable=false, handlesAlerts=true, databaseEnabled=true, version=47.0.1, platform=WINDOWS, nativeEvents=false, acceptSslCerts=true, webStorageEnabled=true, locationContextEnabled=true, browserName=firefox, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true}]
Session ID: c897bef8-b708-45f3-a991-5cf8971939c8
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:206)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:158)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:678)
at org.openqa.selenium.remote.RemoteWebElement.execute(RemoteWebElement.java:327)
at org.openqa.selenium.remote.RemoteWebElement.click(RemoteWebElement.java:85)
It happens when I running this code:
WebElement elementToClick = driver.findElement(By.xpath("//div[#class='show show-hide-accounts-button']"));
elementToClick.click();
And use this part of HTML:
<div class="trader-wrapper">
<a class="avatar-frame-small" href="/bg/traders/5d2f970c-56e9-4ca1-99de-13ecb266bc82">
<span class="flag flag-lt" title="Литва"></span>
<a class="profile-link" href="/bg/traders/5d2f970c-56e9-4ca1-99de-13ecb266bc82">
<div class="trader-current-time">
<div class="accounts-summary">
<button class="follow-trader-ribbon" title="Start receiving trading activity updates from this Trader" data-user-name="Justinas Miezis" data-follow="53121">Follow </button>
<table class="trader-info">
<div class="gain-chart-wrapper trader">
<div class="clear"></div>
<div class="show show-hide-accounts-button">Show account</div>
<div class="angled-separator top">
<div class="trader-accounts">
<div class="angled-separator bottom"></div>
</div>
Does somebody have workaround for this problem?
Thank you in advance.

Selenium Error:I am using selenium webdriver in maximo for testing but some error

Exception in thread "main" org.openqa.selenium.WebDriverException: unknown error: Element is not clickable at point (413, 63). Other element would receive the click: <div id="wait" width="100%" height="100%" class="wait" style="position: absolute; top: 0px; left: 0px; height: 666px; width: 1366px; display: block; cursor: wait;">...</div>
(Session info: chrome=53.0.2785.143)
(Driver info: chromedriver=2.24.417431 (9aea000394714d2fbb20850021f6204f2256b9cf),platform=Windows NT 6.3.9600 x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 94 milliseconds
Build info: version: 'unknown', revision: 'c7b525d', time: '2016-09-01 14:52:30 -0700'
System info: host: 'ICDVM', ip: '10.0.0.11', os.name: 'Windows Server 2012 R2', os.arch: 'amd64', os.version: '6.3', java.version: '1.8.0_102'
Driver info: org.openqa.selenium.chrome.ChromeDriver
Capabilities [{applicationCacheEnabled=false, rotatable=false, mobileEmulationEnabled=false, networkConnectionEnabled=false, chrome={chromedriverVersion=2.24.417431 (9aea000394714d2fbb20850021f6204f2256b9cf), userDataDir=C:\Users\ADMINI~1\AppData\Local\Temp\scoped_dir16420_7494}, takesHeapSnapshot=true, pageLoadStrategy=normal, databaseEnabled=false, handlesAlerts=true, hasTouchScreen=false, version=53.0.2785.143, platform=WIN8_1, browserConnectionEnabled=false, nativeEvents=true, acceptSslCerts=true, locationContextEnabled=true, webStorageEnabled=true, browserName=chrome, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true}]
Session ID: e24f7435d75ad5ddbecb362090ddb0a3
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:206)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:158)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:631)
at org.openqa.selenium.remote.RemoteWebElement.execute(RemoteWebElement.java:284)
at org.openqa.selenium.remote.RemoteWebElement.click(RemoteWebElement.java:84)
at script.Script.main(Script.java:78)
For what its worth, there is an element with a wait class overlaying the element you are trying to click.

How to take selenium webdriver control inside below java script to click on text box

Que: How to take selenium webdriver control inside below java script to click on text box
Need to bring the selenium webdriver control with in Java script then click on the text box
click on the text box "input id="div_4_1_1_1_1_1_2-in"" and enter value inside that
<script type="text/javascript">
<div id="mainBody" class="body main-content" aria-label="(N002A) No customer" role="complementary" style="padding-top: 50px;">
<div id="Tabs1" class="Tabs topLevel CoachView tab-content CoachView_show" data-eventid="" data-viewid="Tabs1" data-config="config14" data-bindingtype="" data-binding="" data-type="com.ibm.bpm.coach.Snapshot_335ceb1a_da60_46fc_818c_04701f47d154.Tabs">
<div id="Validation_Errors1" class="Validation_Errors topLevel CoachView CoachView_show" data-eventid="" data-viewid="Validation_Errors1" data-config="config24" data-bindingtype="ValidationError[]" data-binding="local.validationErrors[]" data-type="com.ibm.bpm.coach.Snapshot_4f1d8c7c_e32f_44e6_97c3_48661f7ae3b9.Validation_Errors"></div>
<div id="Feedback1" class="Feedback topLevel CoachView CoachView_show" data-eventid="" data-viewid="Feedback1" data-config="config18" data-bindingtype="" data-binding="" data-type="com.ibm.bpm.coach.Snapshot_335ceb1a_da60_46fc_818c_04701f47d154.Feedback">
<div id="Form_Scope1" class="Form_Scope topLevel CoachView CoachView_show" data-eventid="" data-viewid="Form_Scope1" data-config="config2" data-bindingtype="" data-binding="" data-type="com.ibm.bpm.coach.Snapshot_335ceb1a_da60_46fc_818c_04701f47d154.Form_Scope">
<form>
<div id="div_4_1" class="ContentBox" data-view-managed="false">
<div id="div_4_1_1" class="Fieldset CoachView CoachView_show" data-eventid="" data-viewid="Fieldset1" data-config="config26" data-bindingtype="" data-binding="" data-type="com.ibm.bpm.coach.Snapshot_335ceb1a_da60_46fc_818c_04701f47d154.Fieldset">
<fieldset>
<div class="row-fluid">
<div id="div_4_1_1_1" class="ContentBox" data-view-managed="false">
<div id="div_4_1_1_1_1" class="span6 CoachView_show" data-eventid="" data-viewid="Fieldset_Column1" data-config="config28" data-bindingtype="" data-binding="" data-type="com.ibm.bpm.coach.Snapshot_335ceb1a_da60_46fc_818c_04701f47d154.Fieldset_Column">
<div id="div_4_1_1_1_1_1" class="ContentBox" data-view-managed="false">
<div id="div_4_1_1_1_1_1_1" class="ListSingle CoachView CoachView_show" data-eventid="" data-viewid="ListSingle1" data-config="config25" data-bindingtype="BpmCustomerSearchScope" data-binding="local.customerRegion" data-type="com.ibm.bpm.coach.Snapshot_335ceb1a_da60_46fc_818c_04701f47d154.ListSingle">
<div id="div_4_1_1_1_1_1_2" class="String CoachView CoachView_show" data-eventid="" data-viewid="String1" data-config="config22" data-bindingtype="String" data-binding="local.customerSearchExpression" data-type="com.ibm.bpm.coach.Snapshot_335ceb1a_da60_46fc_818c_04701f47d154.String">
<div class="w-string w-group clearfix">
<div class="p-label-container span4">
<div class="p-fields-container span8">
<input id="div_4_1_1_1_1_1_2-in" class="p-field span12" type="text">
<div class="p-field" style="display: none;"></div>
<div class="p-help-block"></div>
</div>
</div>
</div>
</div>
</div>
Note : i have tried below different methods to try.
//driver.switchTo().frame(driver.findElement(By.tagName("iframe")));
// driver.switchTo().frame(driver.findElement(By.id("mainBody")));
//driver.switchTo().frame(driver.findElement(By.cssSelector("iframe[title='Fill Quote']")));
// System.out.println("*****Frame handed*******");
// driver.findElement(By.id("mainBody")).click();
// Thread.sleep(30000);
//driver.switchTo().frame(0);
Output : Output :
Started InternetExplorerDriver server (32-bit)
2.37.0.0
Listening on port 10809
Nov 20, 2013 2:39:37 PM org.apache.http.impl.client.DefaultRequestDirector tryExecute
INFO: I/O exception (java.net.SocketException) caught when processing request: Software caused connection abort: recv failed
Nov 20, 2013 2:39:37 PM org.apache.http.impl.client.DefaultRequestDirector tryExecute
INFO: Retrying request
*Going for frame handing***
*Focus on main body***
FAILED: testQTO02
org.openqa.selenium.NoSuchElementException: Unable to find element with id == div_4_1_1_1_1_1_2-in (WARNING: The server did not provide any stacktrace information)
Check to see if <input id="div_4_1_1_1_1_1_2-in" class="p-field span12" type="text"> is in any frame.
If yes use
driver.switchTo.frame("frameName");
before using
driver.findElement(By.id("div_4_1_1_1_1_1_2-in")).sendKeys("input key");
This might not have anything to do with the frame issue, but in a coach, the id is auto-generated to represent the position in the DOM, so it will change if you add or move coach views. Using the data-viewid or the label may be more reliable.

dijit.layout.TabContainer nested tabs auto load

I'm fairly new to Dojo toolkit, and well really like it. But I have a problem with nested tabs auto-refreshing. Here is a sample of my practice code where this problem exists. I'm currently concerned with this as it introduces a huge performance problem when the sub-tabs are plentiful; ex: my subtabs are the letters A-Z for initials for record retrieval.
I've tried all sorts of things to get around this, and all to no avail.
parseOnLoad=true/false
executeScripts=true/false
preload=true/false
nested=true/false
the parent page:
<div id="mainTabContainer" name="mainTabContainer" dojoType="dijit.layout.TabContainer" persist="true" style="margin:10px; width:800px; height:700px">
<div
id="tab1"
name="tab1"
dojoType="dojox.layout.ContentPane"
title="DblClick"
selected="true"
closable="false"
parseOnLoad="true"
executeScripts="true"
preload="false"
preventCache="true"
href="/dojo1.jsp?sParentTabID=tab1">
---
</div>
<div id="tab2" name="tab2" dojoType="dojox.layout.ContentPane" title="Read File" closable="false" executeScripts="true" parseOnLoad="true" href="/dojo2.jsp?sParentTabID=tab2">---</div>
<div id="tab3" name="tab3" dojoType="dojox.layout.ContentPane" title="Form get/post" closable="false" executeScripts="true" parseOnLoad="true" href="/dojo3.jsp?sParentTabID=tab3">---</div>
<div id="tab4" name="tab4" dojoType="dojox.layout.ContentPane" title="Accordions" closable="false" executeScripts="true" parseOnLoad="true" href="/dojo4.jsp?sParentTabID=tab4">---</div>
<div id="tab5" name="tab5" dojoType="dojox.layout.ContentPane" title="Nested Tabs" closable="false" executeScripts="true" parseOnLoad="true" href="/dojo5.jsp?sParentTabID=tab5">---</div>
<div id="tab6" name="tab6" dojoType="dojox.layout.ContentPane" title="Menu" closable="false" executeScripts="true" parseOnLoad="true" href="/dojo6.jsp?sParentTabID=tab6">---</div>
<div id="tab7" name="tab7" dojoType="dojox.layout.ContentPane" title="Simple Objects" closable="false" extractContent="true" executeScripts="true" parseOnLoad="true" href="/dojo7.jsp?sParentTabID=tab7">---</div>
<div id="tab8" name="tab8" dojoType="dojox.layout.ContentPane" title="Calendar" closable="false" extractContent="true" executeScripts="true" parseOnLoad="true" href="/dojo8.jsp?sParentTabID=tab8">---</div>
</div>
the child page (dojo5.jsp):
<div id="mainTabContainer_a4d6313" name="mainTabContainer_a4d6313" dojoType="dijit.layout.TabContainer" nested="true" style="width:95%;height:200px;">
<div id="tab1_a4d6313" name="tab1_a4d6313" dojoType="dijit.layout.ContentPane" title="First Tab" selected="true" closable="false" href="/test.jsp?tabID=tab1_a4d6313">---</div>
<div id="tab2_a4d6313" name="tab2_a4d6313" dojoType="dijit.layout.ContentPane" title="Second Tab" closable="true" href="/random.jsp?tabID=tab2_a4d6313">---</div>
<div id="tab3_a4d6313" name="tab3_a4d6313" dojoType="dijit.layout.ContentPane" title="AJAX Tab" closable="false" href="/random.jsp?tabID=tab3_a4d6313">---</div>
</div>
This is actually working correctly in Dojo 1.4, which is almost released (you can grab the release candidate now).
I did a bunch of work a few months ago, refactoring the code to avoid problems like this.