xpath

How to click on GWT enabled elements using Selenium and Python

与世无争的帅哥 提交于 2020-07-23 04:54:32
问题 I'm working with Selenium as a newbie and also as a newbie developer. I try to solve this XPath but with no results that is why I'm looking for help. So I want to click in the checkbox which has a dynamic id but it is not that easy to find this checkbox based on tittle="Viewers" Please notice there is a whole list of checkboxes with names on right from a checkbox in div which I want to include in my tests. HTML: <span class="row-selection"><input type="checkbox" value="on" id="gwt-uid-2215"

How to get number of secondes between two dates with XPath [duplicate]

倾然丶 夕夏残阳落幕 提交于 2020-07-22 21:41:59
问题 This question already has answers here : Finding the difference between two dateTimes in XSLT (4 answers) Closed last year . I am working with WSO2 ESB and i would like to know how can i get secondes betwenn date A and B. Basically, i would like to calcul time between system time and 12.00pm. Do you have any idea ? I found how to do get number of days but nothing for secondes with Xpath only. I am restricted with Xpath because i can't use a Java script. Thank you. 回答1: The basic is to turn

How to get number of secondes between two dates with XPath [duplicate]

╄→尐↘猪︶ㄣ 提交于 2020-07-22 21:38:12
问题 This question already has answers here : Finding the difference between two dateTimes in XSLT (4 answers) Closed last year . I am working with WSO2 ESB and i would like to know how can i get secondes betwenn date A and B. Basically, i would like to calcul time between system time and 12.00pm. Do you have any idea ? I found how to do get number of days but nothing for secondes with Xpath only. I am restricted with Xpath because i can't use a Java script. Thank you. 回答1: The basic is to turn

Chrome Elements console does not show unique element when given xPath

谁都会走 提交于 2020-07-22 05:48:26
问题 if I press F12 , go to Elements and click ctrl+F to search for a xPath, if I find only one element, that element is not highlighted (but Chrome will point out 1 of 1 ). If i find more than one elements, Chrome highlights from the second one. Problem occures also when I use indexes in xPath: (//a)[1] . 回答1: Seems like you are talking about this bug https://bugs.chromium.org/p/chromium/issues/detail?id=1106703 which was reported in the Chromium issue forums. It was introduced in Chrome 84 with

SQL Server XML Processing: Join different Nodes based on ID

点点圈 提交于 2020-07-22 05:14:31
问题 I am trying to query XML with SQL. Suppose I have the following XML. <xml> <dataSetData> <text>ABC</text> </dataSetData> <generalData> <id>123</id> <text>text data</text> </generalData> <generalData> <id>456</id> <text>text data 2</text> </generalData> <specialData> <id>123</id> <text>special data text</text> </specialData> <specialData> <id>456</id> <text>special data text 2</text> </specialData> </xml> I want to write a SELECT query that returns 2 rows as follows: DataSetData |

Get all links with XPath in Puppeteer (pausing or not working)?

你。 提交于 2020-07-18 07:29:10
问题 I am required to use XPaths to select all links on a page, for then my Puppeteer app to click into and perform some actions. I am finding that the method (code below) is getting stuck sometimes and my crawler will be paused. Is there a better/different way of getting all links from an XPath? Or is there something in my code that is incorrect and could be pausing my app's progress? try { links = await this.getLinksFromXPathSelector(state); } catch (e) { console.log("error getting links");

How to query xml column in TSQL for specific text

风流意气都作罢 提交于 2020-07-16 10:39:37
问题 I am trying to query the word Simple out the following XML Document. The column is xml data type, the column name is InstanceSecurity . <InstanceSecurity> <Folder> <Authorization Mode="Simple"> <Deny PrivilegeCode="Create" /> <Deny PrivilegeCode="Delete" /> <Deny PrivilegeCode="Edit" /> <Deny PrivilegeCode="Read" /> <Deny PrivilegeCode="View" /> <Deny PrivilegeCode="Print" /> <Allow PrivilegeCode="All" EntityType="Personnel" EntityVal="5bc2" /> <Allow PrivilegeCode="All" EntityType="Personnel

XPath take element on double condition

风格不统一 提交于 2020-07-10 03:11:29
问题 I have an InformationModel from OPC-UA, written in xml (https://github.com/OPCFoundation/UA-Nodeset/blob/v1.04/Robotics/Opc.Ua.Robotics.NodeSet2.xml). From this model I want to: Look at the reference inside an UAObject and get the DisplayName only if the reference has 1)The nodeid I am looking for 2)Has a field IsRecursive="false" I tried this code for getting all object with a reference which point to my specified nodeid and it works. Here it is the code for it: var ObjectsName2 = select( "/

XPath take element on double condition

余生颓废 提交于 2020-07-10 03:11:14
问题 I have an InformationModel from OPC-UA, written in xml (https://github.com/OPCFoundation/UA-Nodeset/blob/v1.04/Robotics/Opc.Ua.Robotics.NodeSet2.xml). From this model I want to: Look at the reference inside an UAObject and get the DisplayName only if the reference has 1)The nodeid I am looking for 2)Has a field IsRecursive="false" I tried this code for getting all object with a reference which point to my specified nodeid and it works. Here it is the code for it: var ObjectsName2 = select( "/

xpath google sheet importxml

时光总嘲笑我的痴心妄想 提交于 2020-07-08 03:00:40
问题 this is the link i want to do my importxml on https://sg.finance.yahoo.com/quote/D05.SI <div class="dot-label Pos(r) Fz(13px) Fw(500) D(ib) Ta(c)"><span>Current</span><!-- react-text: 18 --> <!-- /react-text --><span>25.08</span></div> i would like to use importxml to retrieve the value 25.08. =IMPORTXML("https://sg.finance.yahoo.com/quote/D05.SI","//*[@class='dot-label Pos(r) Fz(13px) Fw(500) D(ib) Ta(c)']//span") but it always return #NA, please advise the correct syntax or link and the