I'm running over all textnodes of my DOM and check if the nodeValue contains a certain string.  /html/body//text()[contains(.,'test')]   This is case sensitive. However, I also want to catch Test, TEST oder TesT. Is that possible with X...
When searching for items in complex JSON arrays and hashes, like:  [     { "id": 1, "name": "One", "objects": [         { "id": 1, "name": "Response 1", "objects": [             // etc...
I have a textbox, 'txtSearch'. I am using it to search people by Last Name. this is my code.  var xmlTempResultSearch = xmlResidentListDisplay.selectNodes(     "//PeopleList/Row[contains(translate(@LastName, 'ABCDEFGHIJKLMNOPQRSTUVWXY...
I try to set select option attribute to selected. But I try to avoid using nth-child in CasperJS because there are bugs in PhantomJS's nth-child. So I try to use this as the subtitution of jQuery(css_path).  function setSelectedCountry(i){     wi...
XPath can do everything querySelector can do, and more, so when would you ever choose the latter? I haven't seen any speed benchmarks comparing the two, so right now I'm choosing based on syntax conciseness, which seems kind of arbitrary.  Ed...
I am looking for a Javascript solution to this problem:  I have an XML document which is loaded by way of a typical AJAX method:  var xml = http.responseXML;  Consider the following example xml snippet:  <main>     <primary>          <...
Following is html snippet element    <a ng-click="nodes.setViewType('tiles',true)">  <span class="fa fa-check Tick-Inactive" ng-class="nodes.viewType == 'tiles'? 'Tick-Active':'Tick-Inactive...
In order to implement drag and drop for Selenium tests, I referred to http://elementalselenium.com/tips/39-drag-and-drop There it's mentioned to use javascript(from https://gist.github.com/rcorreia/2362544) to handle drag and drop.  I implemented...
I can't figure out why I can't retrieve a simple string with XPath with this very simple snippet  var page = new WebPage(); page.open('http://free.fr', function (status) {     if (status !== 'success') {         console.log(&#...
For my crawler project, I need to get product details from JavaScript object.  How can I effectively get object details from the following JavaScript? I Use XPath and HTMLAgilityPack.  <script type="text/javascript">     var product = {...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.