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 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...
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'm new to CasperJS and I'm having a few issues getting the innerHTML out of <p class="city">Data I Need</p>  I have tried a few things, but nothing seems to get it.  var city_name= casper.evaluate(".//*[@class='ci...
I am in the process of learning and simultaneously building a web spider using scrapy. I need help with extracting some information from the following javascript code:  <script language="JavaScript" type="text/javascript+gk-onload"...
I need in JavaScript to load in variable contents of another page from the same site and then get data from that contents (parse XML).  I have gotten in text string variable the page's HTML using XMLHttpRequest() and responseText property.  After...
Is it possible to get/generate the XPath, for a text selected in the HTML page. Say,I have opened an html file using a browser,say safari/firefox, now i select some text (using mouse), i want to generate/get the xpath for that. is it possible to get...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.