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.

Test fails with ERROR - cannot find //a[text()="automation"]

See original GitHub issue

Tried with a simple flow, but it fails with ERROR - cannot find //a[text()="automation"] testflow.zip

https://github.com/tebelorg/TagUI
click //a[text()="automation"]
click //a[text()="casperjs"]
click .form-control.header-search-input.js-site-search-focus
enter .form-control.header-search-input.js-site-search-focus as adrinan7\r
click //a[text()="adrian7/adrian7.github.io"]
click //a[text()="adrian7"]

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
kensohcommented, Jun 15, 2017

Looks ok now, added a backup reference to use URL via href, so that for links with special text formatting, at least there is a way to access via the href attribute. Keeping issue open for inputs.

START - automation started - Fri Jun 16 2017 02:12:25 GMT+0800 (+08)
https://github.com/tebelorg/TagUI - GitHub - tebelorg/TagUI: General purpose tool for automating web interactions

click //a[contains(text(),"automation") or @href="/search?q=topic%3Aautomation+org%3Atebelorg&type=Repositories"]
click //a[contains(text(),"casperjs") or @href="/search?q=topic%3Acasperjs+org%3Atebelorg&type=Repositories"]
click .form-control.header-search-input.js-site-search-focus
enter .form-control.header-search-input.js-site-search-focus as adrian7[enter]
click //a[text()="adrian7/adrian7.github.io" or @href="/adrian7/adrian7.github.io"]
click //a[text()="adrian7" or @href="/adrian7"]

https://github.com/adrian7 - adrian7 (Adrian Şilimon-Morariu) · GitHub
FINISH - automation finished - 25.6s
1reaction
adrian7commented, Jun 13, 2017

Yes was recorded using the chrome extension. Maybe we could check for white-spaces characters in the chrome ext, so when the flow is saved is using contains instead of =

Thanks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

getByText ignoring text in html tags · Issue #410 - GitHub
I get this error: Unable to find an element with the text: 2-3. This could be because the text is broken up by...
Read more >
Unable to enter the text in a text box - SQA Stack Exchange
Below is one way to set text This is the problem faced by automation engineers in many qa testing companies while entering data...
Read more >
Cypress Automation - Cannot find button based on text
The 'Accept All' button is inside an iframe. So you have to first go inside the iframe and then perform the click.
Read more >
How To Get Text Of An Element In Selenium? - LambdaTest
One such scenario is how to get the text of an element in Selenium. Selenium offers a getText() method used to get the...
Read more >
Setting up your own test automation environment
In this case we get the title of the current page with the getTitle() method, then return a pass or fail message depending...
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