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.

Unable to find Xpath target for secondary

See original GitHub issue

Any way to resolve this?

» Searching potential dropdown xpath of secondary                                                                                                                                                                                             16:36:02  
» ...selector: //*[@class='tv-control-fieldset__value tv-alert-dialog__fieldset-value js-condition-operator-input-wrap']/*[@class='tv-control-select__wrap tv-dropdown-behavior tv-control-select--size_small' and 1]/span[@class='tv-control-select__control tv-dropdown-behavior__button' and 1]

 ERROR  Unable to find Xpath target for primaryLeft/secondary which doesn't have inputs, so won't even try                                                                                                                                    16:36:05  

  at performActualEntry (/Q:/Trading/node/sandbox/tradingview-alerts-home/node_modules/@alleyway/add-tradingview-alerts-tool/src/service/tv-page-actions.ts:213:32)
  at configureSingleAlertSettings (/Q:/Trading/node/sandbox/tradingview-alerts-home/node_modules/@alleyway/add-tradingview-alerts-tool/src/service/tv-page-actions.ts:231:13)
  at addAlert (/Q:/Trading/node/sandbox/tradingview-alerts-home/node_modules/@alleyway/add-tradingview-alerts-tool/src/service/tv-page-actions.ts:331:5)
  at addAlertsMain (/Q:/Trading/node/sandbox/tradingview-alerts-home/node_modules/@alleyway/add-tradingview-alerts-tool/src/add-alerts.ts:219:9)
  at Command.<anonymous> (/Q:/Trading/node/sandbox/tradingview-alerts-home/node_modules/@alleyway/add-tradingview-alerts-tool/src/cli.ts:67:13)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
mlakecommented, May 11, 2021

Okay - I’ve figured out that you’re making your own custom indicator…I’ve never done that myself so never tried with the tool before…

I believe I’ve nailed the right xpath expression…can you give the following beta release a try?

tradingview-alerts-home % npm install @alleyway/add-tradingview-alerts-tool@beta
0reactions
mlakecommented, May 13, 2021

thanks 😉 glad it’s working for you

I’ll close this for now and make a new release…

Read more comments on GitHub >

github_iconTop Results From Across the Web

unable to find xpath when executed - selenium - Stack Overflow
I don't know what lead you to that XPath but it doesn't seems right based on the source code. Replace WebElement From =...
Read more >
Xpath in Selenium with All Tactics and Examples
XPath in Selenium tactics will help you how to write dynamic XPath in Selenium projects. You can find all examples in this article!...
Read more >
Selenium Java WebDriver Can not Find Element with xpath
I'm not sure why your first xpath fails, it looks okay to me, but your second one fails because you're looking for an...
Read more >
Locators in Selenium: A Detailed Guide - BrowserStack
Learn about different Locators in Selenium - ID, XPath, Name, DOM, Link, Tag & more that enables testers to act on an HTML...
Read more >
6 Ways to Use XPath in Selenium WebDriver - Perfecto
XPath is a syntax for finding elements on web pages, and XPath in Selenium can be used on both HTML and XML documents....
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