selenium-google-code-issue-archive icon indicating copy to clipboard operation
selenium-google-code-issue-archive copied to clipboard

No validation if 'verifyTextPresent' uses transposed 'Target' & 'Value' fields

Open lukeis opened this issue 8 years ago • 3 comments

Originally reported on Google Code with ID 7605

What steps will reproduce the problem?

1. Create a new step using 'verifyTextPresent' command
2. Enter text to be verified in 'Value' field instead of 'Target'. Leave 'Target' NULL
(admittedly this is the users mistake, albeit an easy one to make)
3. Run step

What is the expected output? What do you see instead?

I would expect this step to fail as 'Target' is blank. It doesn't fail, it passes.
This is misleading - the user thinks the step has been created correctly and the text
has passed verification.

Some validation here would really help the inexperienced user (me!). :-)


Selenium version:2.5.0
OS:Windows 8.1
Browser:Firebox
Browser version:30.0


Please provide any additional information below. A sample reduced test
case, or a public URL that demonstrates the problem will intrigue our merry
band of Open Source developers far more than nothing at all: they'll be far
more likely to look at your problem if you make it easy for them!

Reported by blatchtom on 2014-07-15 08:27:04

lukeis avatar Mar 04 '16 08:03 lukeis

Reported by barancev on 2014-07-15 11:45:54

  • Labels added: Type-Enhancement, Component-IDE
  • Labels removed: Type-Defect

lukeis avatar Mar 04 '16 08:03 lukeis

Hi,

There will probably be some syntax hilighting in the future. In the meanwhile, have
you tried out my Selenium Expert plugin? It can be installed from the mozilla addons
site and it will point out some of these errors and even fix some for you.

I will run a few tests to see if this can be easily prevented for now.

Cheers,
Samit Badle
Selenium IDE Maintainer
Twitter: @samitbadle
Blog: http://blog.reallysimplethoughts.com/


Reported by Samit.Badle on 2014-09-16 07:09:45

  • Status changed: Accepted

lukeis avatar Mar 04 '16 08:03 lukeis

Reported by luke.semerau on 2015-09-17 17:47:03

  • Labels added: Restrict-AddIssueComment-Commit

lukeis avatar Mar 04 '16 08:03 lukeis