flybyray / maven-play-plugin

Automatically exported from code.google.com/p/maven-play-plugin
0 stars 0 forks source link

Implement [asser|verify]Selected Selenium command #86

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Added the following to the selenium test 
assertSelected('name=criteria.originator','ANZ')

What is the expected output? What do you see instead?
Expected outupt is that the selenium test passes.
However i get the following;
ERROR: Unknown command: 'getSelected'

What version of the product are you using? On what operating system?
1.0.0-beta2-SNAPSHOT

Please provide any additional information below.

I noticed that you have only implemented the following steps, however there are 
about 50+ selenium commands and it could may take you sometime to implement the 
rest of them. 

AndWaitStep.java
AssertEqualsStep.java
AssertFalseStep.java
AssertNotEqualsStep.java
AssertTrueStep.java
Verify.java
VerifyEqualsStep.java
VerifyFalseStep.java
VerifyNotEqualsStep.java
VerifyTrueStep.java
WaitForEqualsStep.java
WaitForFalseStep.java
WaitForNotEqualsStep.java
WaitForTrueStep.java

Original issue reported on code.google.com by share.re...@gmail.com on 4 Jun 2012 at 1:14

GoogleCodeExporter commented 9 years ago
I found this information in 
${play.path}/modules/testrunner/public/test-runner/selenium/scripts/selenium-tes
trunner.js:

    /**
     * Verifies that the selected option of a drop-down satisfies the optionSpecifier.  <i>Note that this command is deprecated; you should use assertSelectedLabel, assertSelectedValue, assertSelectedIndex, or assertSelectedId instead.</i>
     *
     * <p>See the select command for more information about option locators.</p>
     *
     * @param selectLocator an <a href="#locators">element locator</a> identifying a drop-down menu
     * @param optionLocator an option locator, typically just an option label (e.g. "John Smith")
     */

So this command is deprecated. It seems that if you use JS API directly (like 
Play! Test Runner does) you can use it, but if you use Selenium Java 
client-server API - it's not available.

I've checked the four new methods and all of them work for me.

Original comment by gslowiko...@gmail.com on 5 Jun 2012 at 8:36

GoogleCodeExporter commented 9 years ago
Hi

Thanks for looking into this and getting back so promptly.  I will try
to investigate a little bit more on my side before lodging an issue like
this again.

Original comment by share.re...@gmail.com on 5 Jun 2012 at 11:19

GoogleCodeExporter commented 9 years ago
I'm glad you created an issue. This is a problem and should be reported.
I found a workaround, but after thinking about it a little more I came to the 
conclusion that I have to report this deprecation case to the user with an 
advice what to do (similar to what I wrote in this issue).

Original comment by gslowiko...@gmail.com on 6 Jun 2012 at 9:06

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago

Original comment by gslowiko...@gmail.com on 25 Jun 2012 at 8:12

GoogleCodeExporter commented 9 years ago
svn rev.10013 - commands implemented

Original comment by gslowiko...@gmail.com on 25 Jun 2012 at 8:15

GoogleCodeExporter commented 9 years ago
Snapshot deployed

Original comment by gslowiko...@gmail.com on 25 Jun 2012 at 8:16

GoogleCodeExporter commented 9 years ago
thanks again, i also noticed that you created a new release a couple of
days back can't wait to use it.

Original comment by share.re...@gmail.com on 30 Jun 2012 at 12:21