Tag: path

61 votes
30 answers
2K views
How to get full path of a file?

Is there an easy way I can print the full path of file.txt ? file.txt = /nfs/an/disks/jj/home/dir/file.txt

avatar
Boyd
0 1 0 9
asked 07 September, 2021
56 votes
1 answers
1.5K views
How to use an XPath or CSS selector to look for a substring in Nightwatch testing

I'm having to do Nightwatch testing on the following element: <textarea id="xxxxxxxx-971-condition"

avatar
Georgie
0 1 0 9
asked 07 September, 2021
46 votes
0 answers
2.9K views
How to fetch values from same class and print w/o excel?

enter image description here Ho do I get the values of all the % (like -76%,88%..and so on) using night watch

avatar
Charis
0 1 0 9
asked 07 September, 2021
53 votes
0 answers
2.3K views
Nightwatch - xpath locators stopped working for .waitForElementVisible() and .waitForElementPresent()

My tests has been working well for over a year, today I started to get the following error in numerous parts o

avatar
Boyd
0 1 0 9
asked 07 September, 2021
61 votes
2 answers
432 views
Click on XPath-selected href link in Nightwatch?

How to click on a href link in Nightwatch? The href text is identical to each other so I can't

avatar
Luis
0 1 0 9
asked 07 September, 2021
57 votes
10 answers
3K views
Menu path in Pathauto

How do I get pathauto under Drupal 7 to generate a URL alias by the full menu path?

avatar
Kurtis
0 1 0 9
asked 07 September, 2021
60 votes
8 answers
2.6K views
How to read XML using XPath in Java

I want to read XML data using XPath in Java, so for the information I have gathered I am not able to parse XML

avatar
Omar
0 1 0 9
asked 07 September, 2021
51 votes
8 answers
651 views
Extract value of attribute node via XPath

How can I extract the value of an attribute node via XPath? A sample XML file is: <parents name='Par

avatar
Winford
0 1 0 9
asked 07 September, 2021
53 votes
7 answers
380 views
How can I find an element by CSS class with XPath?

In my webpage, there's a div with a class named Test. How can I find it with XPath?

avatar
Basil
0 1 0 9
asked 07 September, 2021
59 votes
8 answers
747 views
Getting attribute using XPath

Given an XML structure like so: <?xml version="1.0" encoding="ISO-8859-1"?> <bookstore> <boo

avatar
Sachiko
0 1 0 9
asked 07 September, 2021
65 votes
3 answers
2.5K views
Add .dll to java.library.path in Eclipse/PyDev Jython project

I'm trying to use a compiled .jar Java library in my PyDev Jython project. I successfully added the .jar

avatar
Brianne
0 1 0 9
asked 07 September, 2021
60 votes
4 answers
2.2K views
How can I add jars to the classpath when I invoke Jython *without* adding them to $CLASSPATH?

I'd like to do something similar to jython -cp FOO:BAR:BAZ argle.py. If I add FOO, BAR, and BAZ to $CLAS

avatar
Majorie
0 1 0 9
asked 07 September, 2021
65 votes
8 answers
2.8K views
How to construct a WebSocket URI relative to the page URI?

I want to construct a WebSocket URI relative to the page URI at the browser side. Say, in my case convert HTTP

avatar
Thurman
0 1 0 9
asked 07 September, 2021
64 votes
28 answers
2.7K views
How can I safely create a nested directory in Python?

What is the most elegant way to check if the directory a file is going to be written to exists, and if not, cr

avatar
Dorian
0 1 0 9
asked 07 September, 2021
61 votes
6 answers
1.4K views
Selecting a css class with xpath

I want to select just a class on its own called .date For some reason, I cannot get this to work. If anyone k

avatar
Yolando
0 1 0 9
asked 07 September, 2021
66 votes
6 answers
1.7K views
Concatenate strings in Less

I think this is not possible, but I thought I ask in case there is a way. The idea is that I have a variable f

avatar
Keila
0 1 0 9
asked 07 September, 2021