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.

BUG - Different behaviour for assertSelectorHasText

See original GitHub issue

When running assertSelectorHasText on body to verify if a text is present, the script on Firefox PASS but on Chrome it FAILS

Example:

http://tebel.org/gist/about_tebel

test.assertSelectorHasText(tx('body'), "Tebel.Automation",'Check if has keyword');

Firefox: ./src/tagui ./sample/test_body firefox test

PASS Check if has keyword

Chrome: ./src/tagui ./sample/test_body chrome test

AIL Check if has keyword
#    type: assertSelectorHasText
#    file: /Sites/localhost/tagui/sample/test_body.js
#    subject: false
#    selector: "body"
#    text: "Tebel.Automation"
#    actualContent: ""
[info] [phantom] Step anonymous 3/4: done in 1462ms.
# http://tebel.org/gist/about_tebel - About Tebel
[info] [phantom] Step anonymous 4/4: done in 1666ms.
[info] [phantom] Done 4 steps in 1666ms
PASS /Users/tim/Sites/localhost/tagui/hyperlane/test_body (1 test)
FAIL 1 test executed in 1.487s, 0 passed, 1 failed, 0 dubious, 0 skipped.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
kensohcommented, Jul 27, 2017

For CasperJS testing framework if you want to check text for the page body you can consider using this.assertTextExists() - http://docs.casperjs.org/en/latest/modules/tester.html#asserttextexists

0reactions
kensohcommented, Jul 27, 2017

This issue can probably be closed, I think I can update the readme to make it clearer. There are some updates to improve readme clarity from a couple of your closed issues as well.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Behavioral Responses of the Common Bed Bug, Cimex ...
Unlike other studies that evaluate the response of bed bugs to insecticides, the present study has recorded detailed behavioral measurements over a short...
Read more >
Bed Bug Biology and Behavior - VDACS
Mating Behavior​​ After feeding, adult bed bugs, particularly the males, are very interested in mating. Cimicid bugs have unique method of mating called ......
Read more >
Observations on some behaviors of the Bagrada bug - UC ANR
Bagrada bugs are primarily attracted to cruciferous crops. However, the number of host species this pest feeds on or passing through is ...
Read more >
Bed Bug Behavior & Issues - VAMA Eco
After a bite, people's bodies respond to bug bites in different ways. Some may not have a reaction to the bite at all,...
Read more >
Behavioral Responses of the Common Bed Bug to Essential ...
In this study, we first screened fresh and 24 h-aged residues of geraniol, eugenol, carvacrol, thymol, citronellic acid, linalool, menthone, ...
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