Retaki Posted April 6, 2020 Share Posted April 6, 2020 (edited) On 12/12/2019 at 12:30 AM, Danp2 said: @JohnWIlling Unfortunately, that still won't allow you to connect to an instance of Chrome that wasn't launched with Chromedriver. Hello @Danp2 I know that we are not able to connect to an instance chrome tab was not launched by chrome driver. What happened if it was already launched by chrome driver for the first time and there is already an active session but i want to re-connect to it like with different scripts or doing multiple process? Edited April 6, 2020 by Retaki Link to comment Share on other sites More sharing options...
Danp2 Posted April 6, 2020 Author Share Posted April 6, 2020 @Retaki If you don't close the Chromedriver instance between scripts, then you should be able to save the sessionid and reuse it in subsequent scripts Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
Retaki Posted April 7, 2020 Share Posted April 7, 2020 @Danp2 I tried but it failed. __WD_Get: URL=HTTP://127.0.0.1:0/session/4f090d9f81c23ee5a30ce54aadd76b49/window/handles __WD_Get: StatusCode=0; $iResult = 6; $sResponseText=0... __WD_Get ==> Send / Recv error _WD_Window: 0... _WD_Window ==> Webdriver Exception: HTTP status = 0 _WD_Attach ==> General Error __WD_Post: URL=HTTP://127.0.0.1:0/session/4f090d9f81c23ee5a30ce54aadd76b49/element; $sData={"using":"xpath","value":"//input[@name='username']"} __WD_Post: StatusCode=0; ResponseText=0 __WD_Post ==> Send / Recv error _WD_FindElement: 0 _WD_FindElement ==> Send / Recv error: HTTP status = 0 __WD_Post: URL=HTTP://127.0.0.1:0/session/4f090d9f81c23ee5a30ce54aadd76b49/element//clear; $sData={"id":""} __WD_Post: StatusCode=0; ResponseText=0 __WD_Post ==> Send / Recv error _WD_ElementAction: 0... _WD_ElementAction ==> Send / Recv error __WD_Post: URL=HTTP://127.0.0.1:0/session/4f090d9f81c23ee5a30ce54aadd76b49/element//value; $sData={"id":"", "text":"Attached-xx"} __WD_Post: StatusCode=0; ResponseText=0 __WD_Post ==> Send / Recv error _WD_ElementAction: 0... _WD_ElementAction ==> Send / Recv error >Exit code: 0 Time: 8.575 Link to comment Share on other sites More sharing options...
Danp2 Posted April 7, 2020 Author Share Posted April 7, 2020 4 minutes ago, Retaki said: __WD_Get: URL=HTTP://127.0.0.1:0/session/4f090d9f81c23ee5a30ce54aadd76b49/window/handles You are trying to communicate on port zero. This would lead me to assume that you failed to notify the UDF of the correct port number. Try -- _WD_Option('Port', 9515) before calling any other the other webdriver functions. Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
Retaki Posted April 7, 2020 Share Posted April 7, 2020 Perfect, by assigning all the options needed to the UDF, everything goes well and i succeed to find the required element, i didn't notice that the port was zero, thank you. Link to comment Share on other sites More sharing options...
Retaki Posted April 8, 2020 Share Posted April 8, 2020 I have another question, Can i loop through a list of web elements with web driver? Like, I have a list of items, each item has a unique id and text value which i do not know, but i need to retrieve those elements values in a list. these elements are (div). i know only the path of the main (div), so how i can list all the child elements values? Link to comment Share on other sites More sharing options...
Danp2 Posted April 8, 2020 Author Share Posted April 8, 2020 @Retaki You should be able to do this using _WD_FindElement. Here are the basic steps -- Initial call to _WD_FindElement to retrieve the main Div element Subsequent call to _WD_FindElement to retrieve the child Divs Use the Element ID of the main div for the $sStartElement parament $lMultiple parameter needs to be True Assuming you do the above successfully, you will end up with an array of Div elements that you can further process (ie: retrieve their values). P.S. Had one of the mods move this discussion over to this thread in the GH&S section, which is where these types of discussions should occur. Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
Retaki Posted April 8, 2020 Share Posted April 8, 2020 (edited) Thank you @Danp2 , i did retrieve an array of element id's, but how i can capture them to do an action or retrieve a value? as i do not know the full x path. I tried to loop through them with but it will not find any elements. I tried to change the _WD_FindElement strategy to use element id but i didn't succeed, may you please provide help? Edited April 8, 2020 by Retaki Link to comment Share on other sites More sharing options...
Danp2 Posted April 8, 2020 Author Share Posted April 8, 2020 @Retaki You haven't shown any code, so it's difficult to know what you are doing, what isn't working as expected, etc. I suggest that you post a short script that we can run as-is to see the results for ourselves. It doesn't need to be with whatever site you are currently attempting to access. If required, pick another public site that offers a similar element layout. Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
Retaki Posted April 8, 2020 Share Posted April 8, 2020 (edited) @Danp2 Here is an html real-life example expandcollapse popup<div class="autoheight" id="left_panel_objects_grid"> <div class="ui-grid-contents-wrapper"> <div class="ui-grid-render-container"> <div class="ui-grid-viewport" id="left-panel-objects-list" style="height: 669px;"> <wj-flex-grid class="wj-control wj-flexgrid wj-content wj-state-focused" wj-directive-id="1" style="height: 664px;"><div style="position:relative;width:100%;height:100%;overflow:hidden;max-width:inherit;max-height:inherit"><div wj-part="focus" aria-hidden="true" style="position:fixed;opacity:0;pointer-events:none;left:-10px;top:-10px"></div><div wj-part="root" style="position:absolute;width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch;max-width:inherit;max-height:inherit"><div wj-part="cells" class="wj-cells" style="position: absolute; left: 0px; top: 26px; width: 340px; height: 3296px;" role="grid" aria-readonly="true"><div class="wj-row" role="row" tabindex="-1"><div class="wj-cell" role="columnheader" tabindex="-1" aria-sort="none" style="left: 0px; width: 50px; top: -32000px; height: 0.1px; overflow: hidden;"></div><div class="wj-cell" role="columnheader" tabindex="-1" aria-sort="none" style="left: 50px; width: 35px; top: -32000px; height: 0.1px; overflow: hidden;"></div><div class="wj-cell" role="columnheader" tabindex="-1" aria-sort="none" style="left: 85px; width: 1px; top: -32000px; height: 0.1px; overflow: hidden;">obj_group</div><div class="wj-cell" role="columnheader" tabindex="-1" aria-sort="none" style="left: 86px; width: 114px; top: -32000px; height: 0.1px; overflow: hidden;">Name</div><div class="wj-cell" role="columnheader" tabindex="-1" aria-sort="none" style="left: 200px; width: 35px; top: -32000px; height: 0.1px; overflow: hidden;">obj_speed</div><div class="wj-cell" role="columnheader" tabindex="-1" aria-sort="none" style="left: 235px; width: 35px; top: -32000px; height: 0.1px; overflow: hidden;">engine_icon</div><div class="wj-cell" role="columnheader" tabindex="-1" aria-sort="none" style="left: 270px; width: 35px; top: -32000px; height: 0.1px; overflow: hidden;">dt_server</div><div class="wj-cell" role="columnheader" tabindex="-1" aria-sort="none" style="left: 305px; width: 35px; top: -32000px; height: 0.1px; overflow: hidden;"></div></div><div class="wj-row" tabindex="-1" role="row"><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 0px; top: 0px; width: 50px; height: 32px;"><div> <!----><div class="ckbox ckbox-theme" style="display: inline;"> <input class="object_show" type="checkbox" id="object_visible_861230044920115"> <label for="object_visible_861230044920115"></label> </div> <!----><div class="ckbox ckbox-theme" style="display: inline;"> <input class="object_follow" type="checkbox" id="object_follow_861230044920115"> <label for="object_follow_861230044920115"></label> </div> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 50px; top: 0px; width: 35px; height: 32px;"><div> <!----><a class="object_icon" href="#"><img class="unit-img" src="//afaqy.in//img/markers/objects/A_11.png"></a> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 85px; top: 0px; width: 1px; height: 32px;"><div> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 86px; top: 0px; width: 114px; height: 32px;"><div> <!----><div class="grid_obj_name tooltipcell cursor-pointer ang-header" id="objectNameDiv_861230044920115">9209 - X D A</div> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 200px; top: 0px; width: 35px; height: 32px; text-align: center;"><div> <!----><span id="object_speed_861230044920115">0</span> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 235px; top: 0px; width: 35px; height: 32px;"><div> <!----><span id="object_engine_861230044920115"><i class="fa fa-pause"></i></span> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 270px; top: 0px; width: 35px; height: 32px;"><div> <!----><span id="object_conn_valid_861230044920115"><i class="fa fa-signal green"></i></span> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 305px; top: 0px; width: 35px; height: 32px;"><div> <!----><span class="left_menu objectsmenuicon" id="menu_861230044920115"> <!----><a href="#"><i class="fa fa-cog"></i></a> </span> </div></div></div><div class="wj-row" tabindex="-1" role="row"><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 0px; top: 32px; width: 50px; height: 32px;"><div> <!----><div class="ckbox ckbox-theme" style="display: inline;"> <input class="object_show" type="checkbox" id="object_visible_861230044921519"> <label for="object_visible_861230044921519"></label> </div> <!----><div class="ckbox ckbox-theme" style="display: inline;"> <input class="object_follow" type="checkbox" id="object_follow_861230044921519"> <label for="object_follow_861230044921519"></label> </div> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 50px; top: 32px; width: 35px; height: 32px;"><div> <!----><a class="object_icon" href="#"><img class="unit-img" src="//afaqy.in//img/markers/objects/A_11.png"></a> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 85px; top: 32px; width: 1px; height: 32px;"><div> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 86px; top: 32px; width: 114px; height: 32px;"><div> <!----><div class="grid_obj_name tooltipcell cursor-pointer ang-header" id="objectNameDiv_861230044921519">9260 - X D A</div> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 200px; top: 32px; width: 35px; height: 32px; text-align: center;"><div> <!----><span id="object_speed_861230044921519">0</span> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 235px; top: 32px; width: 35px; height: 32px;"><div> <!----><span id="object_engine_861230044921519"><i class="fa fa-pause"></i></span> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 270px; top: 32px; width: 35px; height: 32px;"><div> <!----><span id="object_conn_valid_861230044921519"><i class="fa fa-signal green"></i></span> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 305px; top: 32px; width: 35px; height: 32px;"><div> <!----><span class="left_menu objectsmenuicon" id="menu_861230044921519"> <!----><a href="#"><i class="fa fa-cog"></i></a> </span> </div></div></div><div class="wj-row" tabindex="-1" role="row"><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 0px; top: 64px; width: 50px; height: 32px;"><div> <!----><div class="ckbox ckbox-theme" style="display: inline;"> <input class="object_show" type="checkbox" id="object_visible_861230044923895"> <label for="object_visible_861230044923895"></label> </div> <!----><div class="ckbox ckbox-theme" style="display: inline;"> <input class="object_follow" type="checkbox" id="object_follow_861230044923895"> <label for="object_follow_861230044923895"></label> </div> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 50px; top: 64px; width: 35px; height: 32px;"><div> <!----><a class="object_icon" href="#"><img class="unit-img" src="//afaqy.in//img/markers/objects/L_6.png"></a> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 85px; top: 64px; width: 1px; height: 32px;"><div> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 86px; top: 64px; width: 114px; height: 32px;"><div> <!----><div class="grid_obj_name tooltipcell cursor-pointer ang-header" id="objectNameDiv_861230044923895">6210-S J A</div> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 200px; top: 64px; width: 35px; height: 32px; text-align: center;"><div> <!----><span id="object_speed_861230044923895">0</span> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 235px; top: 64px; width: 35px; height: 32px;"><div> <!----><span id="object_engine_861230044923895"><i class="fa fa-pause green"></i></span> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 270px; top: 64px; width: 35px; height: 32px;"><div> <!----><span id="object_conn_valid_861230044923895"><i class="fa fa-signal green"></i></span> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 305px; top: 64px; width: 35px; height: 32px;"><div> <!----><span class="left_menu objectsmenuicon" id="menu_861230044923895"> <!----><a href="#"><i class="fa fa-cog"></i></a> </span> </div></div></div><div class="wj-row" tabindex="-1" role="row"><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 0px; top: 96px; width: 50px; height: 32px;"><div> <!----><div class="ckbox ckbox-theme" style="display: inline;"> <input class="object_show" type="checkbox" id="object_visible_861230044951425"> <label for="object_visible_861230044951425"></label> </div> <!----><div class="ckbox ckbox-theme" style="display: inline;"> <input class="object_follow" type="checkbox" id="object_follow_861230044951425"> <label for="object_follow_861230044951425"></label> </div> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 50px; top: 96px; width: 35px; height: 32px;"><div> <!----><a class="object_icon" href="#"><img class="unit-img" src="//afaqy.in//img/markers/objects/A_11.png"></a> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 85px; top: 96px; width: 1px; height: 32px;"><div> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 86px; top: 96px; width: 114px; height: 32px;"><div> <!----><div class="grid_obj_name tooltipcell cursor-pointer ang-header" id="objectNameDiv_861230044951425">3670 - E J A</div> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 200px; top: 96px; width: 35px; height: 32px; text-align: center;"><div> <!----><span id="object_speed_861230044951425">0</span> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 235px; top: 96px; width: 35px; height: 32px;"><div> <!----><span id="object_engine_861230044951425"><i class="fa fa-pause"></i></span> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 270px; top: 96px; width: 35px; height: 32px;"><div> <!----><span id="object_conn_valid_861230044951425"><i class="fa fa-signal"></i></span> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 305px; top: 96px; width: 35px; height: 32px;"><div> <!----><span class="left_menu objectsmenuicon" id="menu_861230044951425"> <!----><a href="#"><i class="fa fa-cog"></i></a> </span> </div></div></div><div class="wj-row" tabindex="-1" role="row"><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 0px; top: 128px; width: 50px; height: 32px;"><div> <!----><div class="ckbox ckbox-theme" style="display: inline;"> <input class="object_show" type="checkbox" id="object_visible_861230044951623"> <label for="object_visible_861230044951623"></label> </div> <!----><div class="ckbox ckbox-theme" style="display: inline;"> <input class="object_follow" type="checkbox" id="object_follow_861230044951623"> <label for="object_follow_861230044951623"></label> </div> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 50px; top: 128px; width: 35px; height: 32px;"><div> <!----><a class="object_icon" href="#"><img class="unit-img" src="//afaqy.in//img/markers/objects/L_6.png"></a> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 85px; top: 128px; width: 1px; height: 32px;"><div> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 86px; top: 128px; width: 114px; height: 32px;"><div> <!----><div class="grid_obj_name tooltipcell cursor-pointer ang-header" id="objectNameDiv_861230044951623">6253 - U G J</div> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 200px; top: 128px; width: 35px; height: 32px; text-align: center;"><div> <!----><span id="object_speed_861230044951623">0</span> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 235px; top: 128px; width: 35px; height: 32px;"><div> <!----><span id="object_engine_861230044951623"><i class="fa fa-pause"></i></span> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 270px; top: 128px; width: 35px; height: 32px;"><div> <!----><span id="object_conn_valid_861230044951623"><i class="fa fa-signal"></i></span> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 305px; top: 128px; width: 35px; height: 32px;"><div> <!----><span class="left_menu objectsmenuicon" id="menu_861230044951623"> <!----><a href="#"><i class="fa fa-cog"></i></a> </span> </div></div></div><div class="wj-row" tabindex="-1" role="row"><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 0px; top: 160px; width: 50px; height: 32px;"><div> <!----><div class="ckbox ckbox-theme" style="display: inline;"> <input class="object_show" type="checkbox" id="object_visible_861230044952274"> <label for="object_visible_861230044952274"></label> </div> <!----><div class="ckbox ckbox-theme" style="display: inline;"> <input class="object_follow" type="checkbox" id="object_follow_861230044952274"> <label for="object_follow_861230044952274"></label> </div> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 50px; top: 160px; width: 35px; height: 32px;"><div> <!----><a class="object_icon" href="#"><img class="unit-img" src="//afaqy.in//img/markers/objects/A_11.png"></a> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 85px; top: 160px; width: 1px; height: 32px;"><div> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 86px; top: 160px; width: 114px; height: 32px;"><div> <!----><div class="grid_obj_name tooltipcell cursor-pointer ang-header" id="objectNameDiv_861230044952274">9227 - X D A</div> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 200px; top: 160px; width: 35px; height: 32px; text-align: center;"><div> <!----><span id="object_speed_861230044952274">0</span> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 235px; top: 160px; width: 35px; height: 32px;"><div> <!----><span id="object_engine_861230044952274"><i class="fa fa-pause"></i></span> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 270px; top: 160px; width: 35px; height: 32px;"><div> <!----><span id="object_conn_valid_861230044952274"><i class="fa fa-signal green"></i></span> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 305px; top: 160px; width: 35px; height: 32px;"><div> <!----><span class="left_menu objectsmenuicon" id="menu_861230044952274"> <!----><a href="#"><i class="fa fa-cog"></i></a> </span> </div></div></div><div class="wj-row" tabindex="-1" role="row"><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 0px; top: 192px; width: 50px; height: 32px;"><div> <!----><div class="ckbox ckbox-theme" style="display: inline;"> <input class="object_show" type="checkbox" id="object_visible_861230044953439"> <label for="object_visible_861230044953439"></label> </div> <!----><div class="ckbox ckbox-theme" style="display: inline;"> <input class="object_follow" type="checkbox" id="object_follow_861230044953439"> <label for="object_follow_861230044953439"></label> </div> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 50px; top: 192px; width: 35px; height: 32px;"><div> <!----><a class="object_icon" href="#"><img class="unit-img" src="//afaqy.in//img/markers/objects/L_6.png"></a> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 85px; top: 192px; width: 1px; height: 32px;"><div> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 86px; top: 192px; width: 114px; height: 32px;"><div> <!----><div class="grid_obj_name tooltipcell cursor-pointer ang-header" id="objectNameDiv_861230044953439">9273 - B D B</div> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 200px; top: 192px; width: 35px; height: 32px; text-align: center;"><div> <!----><span id="object_speed_861230044953439">0</span> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 235px; top: 192px; width: 35px; height: 32px;"><div> <!----><span id="object_engine_861230044953439"><i class="fa fa-pause"></i></span> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 270px; top: 192px; width: 35px; height: 32px;"><div> <!----><span id="object_conn_valid_861230044953439"><i class="fa fa-signal green"></i></span> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 305px; top: 192px; width: 35px; height: 32px;"><div> <!----><span class="left_menu objectsmenuicon" id="menu_861230044953439"> <!----><a href="#"><i class="fa fa-cog"></i></a> </span> </div></div></div><div class="wj-row" tabindex="-1" role="row"><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 0px; top: 224px; width: 50px; height: 32px;"><div> <!----><div class="ckbox ckbox-theme" style="display: inline;"> <input class="object_show" type="checkbox" id="object_visible_861230044954858"> <label for="object_visible_861230044954858"></label> </div> <!----><div class="ckbox ckbox-theme" style="display: inline;"> <input class="object_follow" type="checkbox" id="object_follow_861230044954858"> <label for="object_follow_861230044954858"></label> </div> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 50px; top: 224px; width: 35px; height: 32px;"><div> <!----><a class="object_icon" href="#"><img class="unit-img" src="//afaqy.in//img/markers/objects/L_6.png"></a> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 85px; top: 224px; width: 1px; height: 32px;"><div> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 86px; top: 224px; width: 114px; height: 32px;"><div> <!----><div class="grid_obj_name tooltipcell cursor-pointer ang-header" id="objectNameDiv_861230044954858">1852-G D A</div> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 200px; top: 224px; width: 35px; height: 32px; text-align: center;"><div> <!----><span id="object_speed_861230044954858">0</span> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 235px; top: 224px; width: 35px; height: 32px;"><div> <!----><span id="object_engine_861230044954858"><i class="fa fa-pause green"></i></span> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 270px; top: 224px; width: 35px; height: 32px;"><div> <!----><span id="object_conn_valid_861230044954858"><i class="fa fa-signal green"></i></span> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 305px; top: 224px; width: 35px; height: 32px;"><div> <!----><span class="left_menu objectsmenuicon" id="menu_861230044954858"> <!----><a href="#"><i class="fa fa-cog"></i></a> </span> </div></div></div><div class="wj-row" tabindex="-1" role="row"><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 0px; top: 256px; width: 50px; height: 32px;"><div> <!----><div class="ckbox ckbox-theme" style="display: inline;"> <input class="object_show" type="checkbox" id="object_visible_861230044954965"> <label for="object_visible_861230044954965"></label> </div> <!----><div class="ckbox ckbox-theme" style="display: inline;"> <input class="object_follow" type="checkbox" id="object_follow_861230044954965"> <label for="object_follow_861230044954965"></label> </div> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 50px; top: 256px; width: 35px; height: 32px;"><div> <!----><a class="object_icon" href="#"><img class="unit-img" src="//afaqy.in//img/markers/objects/A_11.png"></a> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 85px; top: 256px; width: 1px; height: 32px;"><div> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 86px; top: 256px; width: 114px; height: 32px;"><div> <!----><div class="grid_obj_name tooltipcell cursor-pointer ang-header" id="objectNameDiv_861230044954965">3667 - E J A</div> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 200px; top: 256px; width: 35px; height: 32px; text-align: center;"><div> <!----><span id="object_speed_861230044954965">0</span> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 235px; top: 256px; width: 35px; height: 32px;"><div> <!----><span id="object_engine_861230044954965"><i class="fa fa-pause"></i></span> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 270px; top: 256px; width: 35px; height: 32px;"><div> <!----><span id="object_conn_valid_861230044954965"><i class="fa fa-signal green"></i></span> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 305px; top: 256px; width: 35px; height: 32px;"><div> <!----><span class="left_menu objectsmenuicon" id="menu_861230044954965"> <!----><a href="#"><i class="fa fa-cog"></i></a> </span> </div></div></div><div class="wj-row" tabindex="-1" role="row"><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 0px; top: 288px; width: 50px; height: 32px;"><div> <!----><div class="ckbox ckbox-theme" style="display: inline;"> <input class="object_show" type="checkbox" id="object_visible_861230044955525"> <label for="object_visible_861230044955525"></label> </div> <!----><div class="ckbox ckbox-theme" style="display: inline;"> <input class="object_follow" type="checkbox" id="object_follow_861230044955525"> <label for="object_follow_861230044955525"></label> </div> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 50px; top: 288px; width: 35px; height: 32px;"><div> <!----><a class="object_icon" href="#"><img class="unit-img" src="//afaqy.in//img/markers/objects/L_6.png"></a> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 85px; top: 288px; width: 1px; height: 32px;"><div> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 86px; top: 288px; width: 114px; height: 32px;"><div> <!----><div class="grid_obj_name tooltipcell cursor-pointer ang-header" id="objectNameDiv_861230044955525">3265 - T E A</div> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 200px; top: 288px; width: 35px; height: 32px; text-align: center;"><div> <!----><span id="object_speed_861230044955525">0</span> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 235px; top: 288px; width: 35px; height: 32px;"><div> <!----><span id="object_engine_861230044955525"><i class="fa fa-pause"></i></span> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 270px; top: 288px; width: 35px; height: 32px;"><div> <!----><span id="object_conn_valid_861230044955525"><i class="fa fa-signal green"></i></span> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 305px; top: 288px; width: 35px; height: 32px;"><div> <!----><span class="left_menu objectsmenuicon" id="menu_861230044955525"> <!----><a href="#"><i class="fa fa-cog"></i></a> </span> </div></div></div><div class="wj-row" tabindex="-1" role="row"><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 0px; top: 320px; width: 50px; height: 32px;"><div> <!----><div class="ckbox ckbox-theme" style="display: inline;"> <input class="object_show" type="checkbox" id="object_visible_861230044957653"> <label for="object_visible_861230044957653"></label> </div> <!----><div class="ckbox ckbox-theme" style="display: inline;"> <input class="object_follow" type="checkbox" id="object_follow_861230044957653"> <label for="object_follow_861230044957653"></label> </div> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 50px; top: 320px; width: 35px; height: 32px;"><div> <!----><a class="object_icon" href="#"><img class="unit-img" src="//afaqy.in//img/markers/objects/A_11.png"></a> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 85px; top: 320px; width: 1px; height: 32px;"><div> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 86px; top: 320px; width: 114px; height: 32px;"><div> <!----><div class="grid_obj_name tooltipcell cursor-pointer ang-header" id="objectNameDiv_861230044957653">1318 - L J A</div> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 200px; top: 320px; width: 35px; height: 32px; text-align: center;"><div> <!----><span id="object_speed_861230044957653">0</span> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 235px; top: 320px; width: 35px; height: 32px;"><div> <!----><span id="object_engine_861230044957653"><i class="fa fa-pause"></i></span> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 270px; top: 320px; width: 35px; height: 32px;"><div> <!----><span id="object_conn_valid_861230044957653"><i class="fa fa-signal green"></i></span> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 305px; top: 320px; width: 35px; height: 32px;"><div> <!----><span class="left_menu objectsmenuicon" id="menu_861230044957653"> <!----><a href="#"><i class="fa fa-cog"></i></a> </span> </div></div></div><div class="wj-row" tabindex="-1" role="row"><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 0px; top: 352px; width: 50px; height: 32px;"><div> <!----><div class="ckbox ckbox-theme" style="display: inline;"> <input class="object_show" type="checkbox" id="object_visible_861230044957935"> <label for="object_visible_861230044957935"></label> </div> <!----><div class="ckbox ckbox-theme" style="display: inline;"> <input class="object_follow" type="checkbox" id="object_follow_861230044957935"> <label for="object_follow_861230044957935"></label> </div> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 50px; top: 352px; width: 35px; height: 32px;"><div> <!----><a class="object_icon" href="#"><img class="unit-img" src="//afaqy.in//img/markers/objects/A_11.png"></a> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 85px; top: 352px; width: 1px; height: 32px;"><div> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 86px; top: 352px; width: 114px; height: 32px;"><div> <!----><div class="grid_obj_name tooltipcell cursor-pointer ang-header" id="objectNameDiv_861230044957935">9258 - X D A</div> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 200px; top: 352px; width: 35px; height: 32px; text-align: center;"><div> <!----><span id="object_speed_861230044957935">0</span> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 235px; top: 352px; width: 35px; height: 32px;"><div> <!----><span id="object_engine_861230044957935"><i class="fa fa-pause"></i></span> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 270px; top: 352px; width: 35px; height: 32px;"><div> <!----><span id="object_conn_valid_861230044957935"><i class="fa fa-signal green"></i></span> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 305px; top: 352px; width: 35px; height: 32px;"><div> <!----><span class="left_menu objectsmenuicon" id="menu_861230044957935"> <!----><a href="#"><i class="fa fa-cog"></i></a> </span> </div></div></div><div class="wj-row" tabindex="-1" role="row"><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 0px; top: 384px; width: 50px; height: 32px;"><div> <!----><div class="ckbox ckbox-theme" style="display: inline;"> <input class="object_show" type="checkbox" id="object_visible_861230044958149"> <label for="object_visible_861230044958149"></label> </div> <!----><div class="ckbox ckbox-theme" style="display: inline;"> <input class="object_follow" type="checkbox" id="object_follow_861230044958149"> <label for="object_follow_861230044958149"></label> </div> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 50px; top: 384px; width: 35px; height: 32px;"><div> <!----><a class="object_icon" href="#"><img class="unit-img" src="//afaqy.in//img/markers/objects/A_1.png"></a> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 85px; top: 384px; width: 1px; height: 32px;"><div> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 86px; top: 384px; width: 114px; height: 32px;"><div> <!----><div class="grid_obj_name tooltipcell cursor-pointer ang-header" id="objectNameDiv_861230044958149">6207 - S J A</div> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 200px; top: 384px; width: 35px; height: 32px; text-align: center;"><div> <!----><span id="object_speed_861230044958149">0</span> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 235px; top: 384px; width: 35px; height: 32px;"><div> <!----><span id="object_engine_861230044958149"><i class="fa fa-pause"></i></span> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 270px; top: 384px; width: 35px; height: 32px;"><div> <!----><span id="object_conn_valid_861230044958149"><i class="fa fa-signal green"></i></span> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 305px; top: 384px; width: 35px; height: 32px;"><div> <!----><span class="left_menu objectsmenuicon" id="menu_861230044958149"> <!----><a href="#"><i class="fa fa-cog"></i></a> </span> </div></div></div><div class="wj-row" tabindex="-1" role="row"><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 0px; top: 416px; width: 50px; height: 32px;"><div> <!----><div class="ckbox ckbox-theme" style="display: inline;"> <input class="object_show" type="checkbox" id="object_visible_861230044966589"> <label for="object_visible_861230044966589"></label> </div> <!----><div class="ckbox ckbox-theme" style="display: inline;"> <input class="object_follow" type="checkbox" id="object_follow_861230044966589"> <label for="object_follow_861230044966589"></label> </div> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 50px; top: 416px; width: 35px; height: 32px;"><div> <!----><a class="object_icon" href="#"><img class="unit-img" src="//afaqy.in//img/markers/objects/L_6.png"></a> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 85px; top: 416px; width: 1px; height: 32px;"><div> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 86px; top: 416px; width: 114px; height: 32px;"><div> <!----><div class="grid_obj_name tooltipcell cursor-pointer ang-header" id="objectNameDiv_861230044966589">5700-G B A</div> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 200px; top: 416px; width: 35px; height: 32px; text-align: center;"><div> <!----><span id="object_speed_861230044966589">0</span> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 235px; top: 416px; width: 35px; height: 32px;"><div> <!----><span id="object_engine_861230044966589"><i class="fa fa-pause"></i></span> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 270px; top: 416px; width: 35px; height: 32px;"><div> <!----><span id="object_conn_valid_861230044966589"><i class="fa fa-signal green"></i></span> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 305px; top: 416px; width: 35px; height: 32px;"><div> <!----><span class="left_menu objectsmenuicon" id="menu_861230044966589"> <!----><a href="#"><i class="fa fa-cog"></i></a> </span> </div></div></div><div class="wj-row" tabindex="-1" role="row"><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 0px; top: 448px; width: 50px; height: 32px;"><div> <!----><div class="ckbox ckbox-theme" style="display: inline;"> <input class="object_show" type="checkbox" id="object_visible_861230044968353"> <label for="object_visible_861230044968353"></label> </div> <!----><div class="ckbox ckbox-theme" style="display: inline;"> <input class="object_follow" type="checkbox" id="object_follow_861230044968353"> <label for="object_follow_861230044968353"></label> </div> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 50px; top: 448px; width: 35px; height: 32px;"><div> <!----><a class="object_icon" href="#"><img class="unit-img" src="//afaqy.in//img/markers/objects/A_11.png"></a> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 85px; top: 448px; width: 1px; height: 32px;"><div> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 86px; top: 448px; width: 114px; height: 32px;"><div> <!----><div class="grid_obj_name tooltipcell cursor-pointer ang-header" id="objectNameDiv_861230044968353">1701 - R D A</div> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 200px; top: 448px; width: 35px; height: 32px; text-align: center;"><div> <!----><span id="object_speed_861230044968353">0</span> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 235px; top: 448px; width: 35px; height: 32px;"><div> <!----><span id="object_engine_861230044968353"><i class="fa fa-pause"></i></span> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 270px; top: 448px; width: 35px; height: 32px;"><div> <!----><span id="object_conn_valid_861230044968353"><i class="fa fa-signal green"></i></span> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 305px; top: 448px; width: 35px; height: 32px;"><div> <!----><span class="left_menu objectsmenuicon" id="menu_861230044968353"> <!----><a href="#"><i class="fa fa-cog"></i></a> </span> </div></div></div><div class="wj-row" tabindex="-1" role="row"><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 0px; top: 480px; width: 50px; height: 32px;"><div> <!----><div class="ckbox ckbox-theme" style="display: inline;"> <input class="object_show" type="checkbox" id="object_visible_861230044989946"> <label for="object_visible_861230044989946"></label> </div> <!----><div class="ckbox ckbox-theme" style="display: inline;"> <input class="object_follow" type="checkbox" id="object_follow_861230044989946"> <label for="object_follow_861230044989946"></label> </div> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 50px; top: 480px; width: 35px; height: 32px;"><div> <!----><a class="object_icon" href="#"><img class="unit-img" src="//afaqy.in//img/markers/objects/A_11.png"></a> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 85px; top: 480px; width: 1px; height: 32px;"><div> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 86px; top: 480px; width: 114px; height: 32px;"><div> <!----><div class="grid_obj_name tooltipcell cursor-pointer ang-header" id="objectNameDiv_861230044989946">8621 - X D A</div> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 200px; top: 480px; width: 35px; height: 32px; text-align: center;"><div> <!----><span id="object_speed_861230044989946">0</span> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 235px; top: 480px; width: 35px; height: 32px;"><div> <!----><span id="object_engine_861230044989946"><i class="fa fa-pause"></i></span> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 270px; top: 480px; width: 35px; height: 32px;"><div> <!----><span id="object_conn_valid_861230044989946"><i class="fa fa-signal green"></i></span> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 305px; top: 480px; width: 35px; height: 32px;"><div> <!----><span class="left_menu objectsmenuicon" id="menu_861230044989946"> <!----><a href="#"><i class="fa fa-cog"></i></a> </span> </div></div></div><div class="wj-row" tabindex="-1" role="row"><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 0px; top: 512px; width: 50px; height: 32px;"><div> <!----><div class="ckbox ckbox-theme" style="display: inline;"> <input class="object_show" type="checkbox" id="object_visible_861230044990712"> <label for="object_visible_861230044990712"></label> </div> <!----><div class="ckbox ckbox-theme" style="display: inline;"> <input class="object_follow" type="checkbox" id="object_follow_861230044990712"> <label for="object_follow_861230044990712"></label> </div> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 50px; top: 512px; width: 35px; height: 32px;"><div> <!----><a class="object_icon" href="#"><img class="unit-img" src="//afaqy.in//img/markers/objects/L_6.png"></a> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 85px; top: 512px; width: 1px; height: 32px;"><div> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 86px; top: 512px; width: 114px; height: 32px;"><div> <!----><div class="grid_obj_name tooltipcell cursor-pointer ang-header" id="objectNameDiv_861230044990712">1577 - R D A</div> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 200px; top: 512px; width: 35px; height: 32px; text-align: center;"><div> <!----><span id="object_speed_861230044990712">0</span> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 235px; top: 512px; width: 35px; height: 32px;"><div> <!----><span id="object_engine_861230044990712"><i class="fa fa-pause green"></i></span> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 270px; top: 512px; width: 35px; height: 32px;"><div> <!----><span id="object_conn_valid_861230044990712"><i class="fa fa-signal green"></i></span> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 305px; top: 512px; width: 35px; height: 32px;"><div> <!----><span class="left_menu objectsmenuicon" id="menu_861230044990712"> <!----><a href="#"><i class="fa fa-cog"></i></a> </span> </div></div></div><div class="wj-row" tabindex="-1" role="row"><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 0px; top: 544px; width: 50px; height: 32px;"><div> <!----><div class="ckbox ckbox-theme" style="display: inline;"> <input class="object_show" type="checkbox" id="object_visible_861230044990746"> <label for="object_visible_861230044990746"></label> </div> <!----><div class="ckbox ckbox-theme" style="display: inline;"> <input class="object_follow" type="checkbox" id="object_follow_861230044990746"> <label for="object_follow_861230044990746"></label> </div> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 50px; top: 544px; width: 35px; height: 32px;"><div> <!----><a class="object_icon" href="#"><img class="unit-img" src="//afaqy.in//img/markers/objects/A_11.png"></a> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 85px; top: 544px; width: 1px; height: 32px;"><div> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 86px; top: 544px; width: 114px; height: 32px;"><div> <!----><div class="grid_obj_name tooltipcell cursor-pointer ang-header" id="objectNameDiv_861230044990746">8168 - D J A</div> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 200px; top: 544px; width: 35px; height: 32px; text-align: center;"><div> <!----><span id="object_speed_861230044990746">0</span> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 235px; top: 544px; width: 35px; height: 32px;"><div> <!----><span id="object_engine_861230044990746"><i class="fa fa-pause green"></i></span> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 270px; top: 544px; width: 35px; height: 32px;"><div> <!----><span id="object_conn_valid_861230044990746"><i class="fa fa-signal green"></i></span> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 305px; top: 544px; width: 35px; height: 32px;"><div> <!----><span class="left_menu objectsmenuicon" id="menu_861230044990746"> <!----><a href="#"><i class="fa fa-cog"></i></a> </span> </div></div></div><div class="wj-row" tabindex="-1" role="row"><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 0px; top: 576px; width: 50px; height: 32px;"><div> <!----><div class="ckbox ckbox-theme" style="display: inline;"> <input class="object_show" type="checkbox" id="object_visible_861230044991173"> <label for="object_visible_861230044991173"></label> </div> <!----><div class="ckbox ckbox-theme" style="display: inline;"> <input class="object_follow" type="checkbox" id="object_follow_861230044991173"> <label for="object_follow_861230044991173"></label> </div> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 50px; top: 576px; width: 35px; height: 32px;"><div> <!----><a class="object_icon" href="#"><img class="unit-img" src="//afaqy.in//img/markers/objects/A_11.png"></a> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 85px; top: 576px; width: 1px; height: 32px;"><div> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 86px; top: 576px; width: 114px; height: 32px;"><div> <!----><div class="grid_obj_name tooltipcell cursor-pointer ang-header" id="objectNameDiv_861230044991173">8501 - N J A</div> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 200px; top: 576px; width: 35px; height: 32px; text-align: center;"><div> <!----><span id="object_speed_861230044991173">0</span> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 235px; top: 576px; width: 35px; height: 32px;"><div> <!----><span id="object_engine_861230044991173"><i class="fa fa-pause"></i></span> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 270px; top: 576px; width: 35px; height: 32px;"><div> <!----><span id="object_conn_valid_861230044991173"><i class="fa fa-signal green"></i></span> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell" style="left: 305px; top: 576px; width: 35px; height: 32px;"><div> <!----><span class="left_menu objectsmenuicon" id="menu_861230044991173"> <!----><a href="#"><i class="fa fa-cog"></i></a> </span> </div></div></div><div class="wj-row" tabindex="-1" role="row"><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 0px; top: 608px; width: 50px; height: 32px;"><div> <!----><div class="ckbox ckbox-theme" style="display: inline;"> <input class="object_show" type="checkbox" id="object_visible_861230044997600"> <label for="object_visible_861230044997600"></label> </div> <!----><div class="ckbox ckbox-theme" style="display: inline;"> <input class="object_follow" type="checkbox" id="object_follow_861230044997600"> <label for="object_follow_861230044997600"></label> </div> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 50px; top: 608px; width: 35px; height: 32px;"><div> <!----><a class="object_icon" href="#"><img class="unit-img" src="//afaqy.in//img/markers/objects/L_6.png"></a> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 85px; top: 608px; width: 1px; height: 32px;"><div> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 86px; top: 608px; width: 114px; height: 32px;"><div> <!----><div class="grid_obj_name tooltipcell cursor-pointer ang-header" id="objectNameDiv_861230044997600">9388-X D A</div> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 200px; top: 608px; width: 35px; height: 32px; text-align: center;"><div> <!----><span id="object_speed_861230044997600">0</span> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 235px; top: 608px; width: 35px; height: 32px;"><div> <!----><span id="object_engine_861230044997600"><i class="fa fa-pause green"></i></span> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 270px; top: 608px; width: 35px; height: 32px;"><div> <!----><span id="object_conn_valid_861230044997600"><i class="fa fa-signal green"></i></span> </div></div><div tabindex="-1" role="gridcell" title="" class="wj-cell wj-alt" style="left: 305px; top: 608px; width: 35px; height: 32px;"><div> <!----><span class="left_menu objectsmenuicon" id="menu_861230044997600"> <!----><a href="#"><i class="fa fa-cog"></i></a> </span> </div></div></div></div><div wj-part="marquee" aria-hidden="true" class="wj-marquee" style="display:none;pointer-events:none;"><div style="width:100%;height:100%"></div></div></div><div wj-part="fcells" aria-hidden="true" class="wj-cells" style="position: absolute; pointer-events: none; overflow: hidden; left: 0px; top: 26px; width: 345px; height: 638px;"></div><div wj-part="rh" aria-hidden="true" style="position: absolute; overflow: hidden; outline: none; left: 0px; top: 26px; width: 0px; height: 638px;"><div wj-part="rhcells" class="wj-rowheaders" style="position:relative"></div></div><div wj-part="cf" aria-hidden="true" style="position: absolute; overflow: hidden; outline: none; left: 0px; top: 3322px; height: 0px; width: 345px;"><div wj-part="cfcells" class="wj-colfooters" style="position:relative"></div></div><div wj-part="ch" aria-hidden="true" style="position: absolute; overflow: hidden; outline: none; left: 0px; top: 0px; height: 26px; width: 345px;"><div wj-part="chcells" class="wj-colheaders" style="position: relative; left: 0px;"><div class="wj-row" tabindex="-1"><div tabindex="-1" draggable="true" class="wj-cell wj-header" style="left: 0px; top: 0px; width: 50px; height: 26px;"><div> <a class="checkboxlist" href="#"><i class="fa fa-eye"></i></a> <a class="checkboxlist" href="#"><i class="fa fa-search"></i></a> </div></div><div tabindex="-1" draggable="true" class="wj-cell wj-header" style="left: 50px; top: 0px; width: 35px; height: 26px;"></div><div tabindex="-1" draggable="true" class="wj-cell wj-header" style="left: 85px; top: 0px; width: 1px; height: 26px;">obj_group</div><div tabindex="-1" draggable="true" class="wj-cell wj-header" style="left: 86px; top: 0px; width: 114px; height: 26px;">Name</div><div tabindex="-1" draggable="true" class="wj-cell wj-header" style="left: 200px; top: 0px; width: 35px; height: 26px; text-align: center;"><div> <i class="fa fa-tachometer" title="kh"></i> </div></div><div tabindex="-1" draggable="true" class="wj-cell wj-header" style="left: 235px; top: 0px; width: 35px; height: 26px;"><div> <i class="fa fa-bolt" title="ACC"></i> </div></div><div tabindex="-1" draggable="true" class="wj-cell wj-header" style="left: 270px; top: 0px; width: 35px; height: 26px;"><div> <i class="fa fa-feed" title="Signal"></i> </div></div><div tabindex="-1" draggable="true" class="wj-cell wj-header" style="left: 305px; top: 0px; width: 35px; height: 26px;"></div></div></div></div><div wj-part="bl" aria-hidden="true" style="position: absolute; overflow: hidden; outline: none; left: 0px; top: 3322px; width: 0px; height: 0px;"><div wj-part="blcells" class="wj-bottomleft" style="position:relative"></div></div><div wj-part="tl" aria-hidden="true" style="position: absolute; overflow: hidden; outline: none; left: 0px; top: 0px; width: 0px; height: 26px;"><div wj-part="tlcells" class="wj-topleft" style="position:relative"><div class="wj-row" tabindex="-1"><div tabindex="-1" class="wj-cell wj-header" style="left: 0px; top: 0px; width: 33px; height: 26px; text-align: center;"></div></div></div></div><div wj-part="sz" aria-hidden="true" style="position: relative; visibility: hidden; width: 357px; height: 3322px;"></div></div><div> <wj-flex-grid-column binding="" header="" wj-directive-id="2" style="display: none;"><div> <!----> <!----> </div></wj-flex-grid-column> <!----> <wj-flex-grid-column header="" wj-directive-id="2" style="display: none;"><div> <!----> </div></wj-flex-grid-column> <wj-flex-grid-column header="" wj-directive-id="2" style="display: none;"><div> <!----> <!----> </div></wj-flex-grid-column> <wj-flex-grid-column binding="obj_name" wj-directive-id="2" style="display: none;"><div> <!----> </div></wj-flex-grid-column> <wj-flex-grid-column align="center" binding="obj_speed" wj-directive-id="2" style="display: none;"><div> <!----> <!----> </div></wj-flex-grid-column> <wj-flex-grid-column binding="engine_icon" wj-directive-id="2" style="display: none;"><div> <!----> <!----> </div></wj-flex-grid-column> <wj-flex-grid-column binding="dt_server" header="" wj-directive-id="2" style="display: none;"><div> <!----> <!----> </div></wj-flex-grid-column> <wj-flex-grid-column wj-directive-id="2" style="display: none;"><div> <!----> </div></wj-flex-grid-column> </div></wj-flex-grid> </div> </div> </div> <div> Total: 103 </div> </div> Most of these html code shall be generated using some java script functions as it retrieves from database. My main div xpath is ("//div[@id='left_panel_objects_object_list']") and my separator which identify the target divs is ("//div[@class='grid_obj_name tooltipcell cursor-pointer ang-header']") With this simple Autoit code using your UDF i can access it as i succeed to retrieve each div ID #include <Array.au3> #include "wd_core.au3" #include "wd_helper.au3" #include <FileConstants.au3> Local $sDesiredCapabilities, $sSession, $generalTimeout, $mainElement _WD_Option('Driver', 'chromedriver.exe') _WD_Option('Port', 9515) _WD_Option('DriverParams', '--log-path="' & @ScriptDir & '\chrome.log"') _WD_Startup() $sDesiredCapabilities = '{"capabilities": {"alwaysMatch": {"goog:chromeOptions": {"w3c": true }}}}' $sSession = _WD_CreateSession($sDesiredCapabilities) _WD_Navigate($sSession, "file:///Z:/test-html.html") _WD_Attach($sSession, "file:///Z:/test-html.html", "URL") Local $element = "//div[@id='left_panel_objects_object_list']" Local $nodeElement = "//div[@class='grid_obj_name tooltipcell cursor-pointer ang-header']" $mainElement = _WD_FindElement($sSession, $_WD_LOCATOR_ByXPath, $element) $fElement = _WD_FindElement($sSession, $_WD_LOCATOR_ByXPath, $nodeElement, $mainElement,True) _ArrayDisplay($fElement, "Found Elements") For $row In $fElement ConsoleWrite($row & @CRLF) $value = _WD_ElementAction($sSession, $row, "Attribute", "id") ConsoleWrite("Div ID: " & $value & @CRLF) Next By using these example, am allowed to retrieve 21 item only from the whole list, but i can assume that's because the rest was not generated yet as i need to scroll down. So i solved my first question i was just doing something wrong but right now. How can i retrieve the whole items which they are (103) units? do i need to automate scrolling down? Edited April 8, 2020 by Retaki Link to comment Share on other sites More sharing options...
Danp2 Posted April 8, 2020 Author Share Posted April 8, 2020 @Retaki Thanks for the example. However, I see a few issues in your code -- Not a big deal, but you don't need the call to _WD_Attach in this case For me, your initial call to _WD_FindElement is failing to find the desired element. You need to add some error checking to avoid continuing the script when this error condition occurs Because the prior command failed, $mainElement is an empty string. Your subsequent call to _WD_FindElement is retrieving all matching elements, not just the ones starting with $mainElement To retrieve all 103 items, ask yourself "What do I need to do to make all of the items appear in the web browser?" If the answer is "Scroll down to the bottom of the list", then I imagine that's what you need to automate with the UDF. 😏 Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
Retaki Posted April 16, 2020 Share Posted April 16, 2020 Thank you @Danp2, I really appreciate your efforts. I do really facing a weird issue, but before that, i want to ask a question. Regarding HTTP response, Can we read it directly from the web driver or the UDF is capable to return it as its? Sometimes i get (Status = 200) but (Value=null) while am not asking for a value at all. __WD_Post: StatusCode=200; ResponseText={"value":null} __WD_Get: StatusCode=200; $iResult = 0; $sResponseText={"value":null}... _WD_ElementAction: {"value":null}... I do not really understand if am doing something wrong, but the only question is there is anything can make me certain of what is coming? Like get a reliable response beside ($__WD_ERROR_SUCCESS) cause i do not think it is enough. Link to comment Share on other sites More sharing options...
Danp2 Posted April 16, 2020 Author Share Posted April 16, 2020 @Retaki It's difficult to know how to answer without more details. You would need to explain what you were doing (show us the Autoit code 😉) when you received that response. P.S. The variable $_WD_HTTPRESULT should always contain the most recent HTTP status code Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
Retaki Posted April 17, 2020 Share Posted April 17, 2020 @Danp2, Yeah that variable was really useful but i also need to get these variables ($sResult & $sResponse) from WD_CORE regarding my last issue, i think it happens when clicking or assigning a value to an element __WD_Post: URL=HTTP://127.0.0.1:9515/session/2ea42a8a84efbd223a71d3dedb293e15/element/d1b2f755-556a-4aa3-9f80-842aaa29c915/click; $sData={"id":"d1b2f755-556a-4aa3-9f80-842aaa29c915"} __WD_Post: StatusCode=200; ResponseText={"value":null} _WD_ElementAction: {"value":null}... __WD_Post: URL=HTTP://127.0.0.1:9515/session/2ea42a8a84efbd223a71d3dedb293e15/element/d1b2f755-556a-4aa3-9f80-842aaa29c915/clear; $sData={"id":"d1b2f755-556a-4aa3-9f80-842aaa29c915"} __WD_Post: StatusCode=200; ResponseText={"value":null} _WD_ElementAction: {"value":null}... __WD_Post: URL=HTTP://127.0.0.1:9515/session/2ea42a8a84efbd223a71d3dedb293e15/element/d1b2f755-556a-4aa3-9f80-842aaa29c915/value; $sData={"id":"d1b2f755-556a-4aa3-9f80-842aaa29c915", "text":"Test-Text-To-Assign"} __WD_Post: StatusCode=200; ResponseText={"value":null} _WD_ElementAction: {"value":null}... the value is always null, is that normal? Link to comment Share on other sites More sharing options...
Danp2 Posted April 17, 2020 Author Share Posted April 17, 2020 10 minutes ago, Retaki said: i also need to get these variables ($sResult & $sResponse) from WD_CORE Please elaborate. What information are you wanting to access that isn't already being returned in the functions result? Be specific please. As far as the {"value":null} stuff, this is the expected behavior. For example, look at the element click specs. The very last step states -- Quote Return success with data null. So I'm not sure why this is a problem for you. Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
Retaki Posted April 17, 2020 Share Posted April 17, 2020 (edited) Sounds great, while in some situations, like a loop to keep looking for an element might return such a value (StatusCode: 200) even if its not really found Do $i += 1 Sleep($sleeptime) _WD_FindElement($sSession, $_WD_LOCATOR_ByXPath, $loginDiv) $responseError = @error ConsoleWrite("sosFuncResponse: " & $responseError & @CRLF) If $i = 10 Then Return 104 EndIf Until $responseError = $_WD_ERROR_Success And $_WD_HTTPRESULT = 200 Edited April 17, 2020 by Retaki Link to comment Share on other sites More sharing options...
Retaki Posted April 17, 2020 Share Posted April 17, 2020 That link you posted is really useful, thank you. @Danp2 Link to comment Share on other sites More sharing options...
Danp2 Posted April 17, 2020 Author Share Posted April 17, 2020 @Retaki You should take a look at _WD_WaitElement. 😃 $_WD_HTTPRESULT is there for the rare occasion when you need it, but you shouldn't need to check it in most scenarios. P.S. I should have referred you to _WD_LastHTTPResult() instead of directly accessing the variable. By using the function, you will ensure that an underlying change to the UDF won't conflict with your own code. Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
Retaki Posted April 17, 2020 Share Posted April 17, 2020 (edited) Understood, thanks, do you please clarify more why i need to look at _WD_WaitElement? what did you notice in my code? is the Wait Element doing the same am doing in the code i posted? Also i have another question but its not related to UDF directly. In this example there is a pop is already displayed, I can easily access it using the getElement function but how i can check if its already displayed or not? Like if if it has the style attribute is assigned to or not? Cause i always find it but am not sure if its displayed or no Edited April 17, 2020 by Retaki Link to comment Share on other sites More sharing options...
Retaki Posted April 17, 2020 Share Posted April 17, 2020 Well i got it, just get the value function with (Attribute) and (Style) or what you want to read Link to comment Share on other sites More sharing options...
Recommended Posts