question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

xpath error after first pair is added

See original GitHub issue

@mlake Tried in powershell and Ubuntu, same error both times. 1st pair does get correctly generated however.

PS C:\Scratch\alert\add-tradingview-alerts-tool - backup> npm run add-alerts

@alleyway/add-tradingview-alerts-tool@1.0.2 add-alerts tsc && node lib/add-tradingview-alerts.js

Using config file: config.yml Adding symbol: BINANCE:BTCUSDT ( BTC priced in USDT ) TimeoutError: waiting for XPath //*[text()='Continue anyway'] failed: timeout 30000ms exceeded at new WaitTask (C:\Scratch\alert\add-tradingview-alerts-tool - backup\node_modules\puppeteer\lib\cjs\puppeteer\common\DOMWorld.js:411:34) at DOMWorld.waitForXPath (C:\Scratch\alert\add-tradingview-alerts-tool - backup\node_modules\puppeteer\lib\cjs\puppeteer\common\DOMWorld.js:336:26) at Frame.waitForXPath (C:\Scratch\alert\add-tradingview-alerts-tool - backup\node_modules\puppeteer\lib\cjs\puppeteer\common\FrameManager.js:866:51) at Page.waitForXPath (C:\Scratch\alert\add-tradingview-alerts-tool - backup\node_modules\puppeteer\lib\cjs\puppeteer\common\Page.js:1325:33) at C:\Scratch\alert\add-tradingview-alerts-tool - backup\src\add-tradingview-alerts.ts:31:16 at step (C:\Scratch\alert\add-tradingview-alerts-tool - backup\lib\add-tradingview-alerts.js:33:23) at Object.next (C:\Scratch\alert\add-tradingview-alerts-tool - backup\lib\add-tradingview-alerts.js:14:53) at C:\Scratch\alert\add-tradingview-alerts-tool - backup\lib\add-tradingview-alerts.js:8:71 at new Promise (<anonymous>) at __awaiter (C:\Scratch\alert\add-tradingview-alerts-tool - backup\lib\add-tradingview-alerts.js:4:12)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Maacuscommented, Nov 12, 2020

Yep, that’s it. Thanks so much for working on this and going the extra mile with my random requests. I suspect there will be others out there who will really appreciate it too.

If I ever make money out of Crypto, instead of mostly losing it, I’ll be sure to remember your ETH address!

Thanks

0reactions
mlakecommented, Nov 12, 2020

I think YAML doesn’t like the braces, try putting double quotes around your name value, eg:

alert:
  indicator: MTF Deviation
  signal: Tier1 long
  option: Once Per Bar Close
  # alert name is optional - can override in csv if you add a "name" column. can use {{symbol|base|quote}}
  name: "{{base}}{{quote}} Buy"
  # indentation matters! {{quote}} and {{base}} are swapped out for quote asset(eg. USDT) and the base (eg. BTC)
Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting Invalid XPath Expression error while retrieving elements
I am getting invalid expression error after running the above XPath expression. Basically, I want to find out all those book elements whose ......
Read more >
XPath and XQuery Functions and Operators 3.1 - W3C
The function name is a QName as defined in [XML Schema Part 2: Datatypes Second Edition] and must adhere to its syntactic conventions....
Read more >
Complete Guide For Using XPath In Selenium With Examples
We will be digging into the steps of locating an element by XPath in Selenium with examples, to help you understand various ways...
Read more >
11 Using XPath Functions
This chapter describes how to use XPath functions when modeling orders in Oracle Communications Order and Service Management (OSM).
Read more >
Evaluating XPath Expressions | Using XML Tools
Describes how to evaluate XPath expressions by using %XML. ... InterSystems recommends that you set the OREF for a document equal to null...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found