Coder Social home page Coder Social logo

Comments (10)

amolenaar avatar amolenaar commented on September 15, 2024

It's not clear to me what the issue is.

from xebium.

bvklingeren avatar bvklingeren commented on September 15, 2024

Well, if you want to remove the hello string that is printed in an editable textbox (like in the example), it will not do that any more with the new Selenium version.

from xebium.

amolenaar avatar amolenaar commented on September 15, 2024

If I understand well, this test case should exhibit the issue:

| script | selenium driver fixture |
| set step delay to | slow |
| start browser | firefox | on url | http://localhost:${FITNESSE_PORT}/ |
| ensure | do | open | on | /ProjectXebium.ExampleSuite.BasicFixtureExample?searchForm |
| ensure | do | type | on | searchString | with | blah |
| ensure | do | verifyValue | on | searchString | with | blah |
| ensure | do | type | on | searchString | with ||
| ensure | do | verifyValue | on | searchString | with | |
| stop browser |

But I think I can't reproduce it. Am I missing something here?

from xebium.

bvklingeren avatar bvklingeren commented on September 15, 2024

Have you tried it without the step delay set to slow? Apart from that
the setup seems the same as I had.

2011/6/30 amolenaar
[email protected]:

If I understand well, this test case should exhibit the issue:

| script | selenium driver fixture |
| set step delay to | slow |
| start browser  | firefox  | on url  | http://localhost:${FITNESSE_PORT}/ |
| ensure | do | open | on | /ProjectXebium.ExampleSuite.BasicFixtureExample?searchForm |
| ensure | do | type | on | searchString | with | blah |
| ensure | do | verifyValue | on | searchString | with | blah |
| ensure | do | type | on | searchString | with ||
| ensure | do | verifyValue | on | searchString | with | |
| stop browser |

But I think I can't reproduce it. Am I missing something here?

Reply to this email directly or view it on GitHub:
#18 (comment)

from xebium.

bvklingeren avatar bvklingeren commented on September 15, 2024

I think I got it!

Let's try it with a textarea:

| script | selenium driver fixture |
| set step delay to | slow |
| start browser | firefox | on url | http://localhost:${FITNESSE_PORT}/ |
| ensure | do | open | on | /ProjectXebium.ExampleSuite.BasicFixtureExample?searchForm |
| ensure | do | type | on | Suites | with | blah |
| ensure | do | verifyValue | on | Suites | with | blah |
| ensure | do | type | on | Suites | with ||
| ensure | do | verifyValue | on | Suites | with | |
| ensure | do | type | on | Suites | with |blah2|
| ensure | do | verifyValue | on | Suites | with |blah2 |
| stop browser |

You will see that the test passes but the result in the textarea is blahblah2. Apparently there are now 2 issues: removing text from a textarea is not possible anymore and the verify value command checks old data, which causes the test to pass.

from xebium.

amolenaar avatar amolenaar commented on September 15, 2024

Indeed. It works fine with remote server, but in the WebDriver version something changed over the last weeks.

Raised an issue with Selenium: http://code.google.com/p/selenium/issues/detail?id=1982

from xebium.

bvklingeren avatar bvklingeren commented on September 15, 2024

I urge everybody who is experiencing these problems to 'star' the selenium issue (http://code.google.com/p/selenium/issues/detail?id=1982) so it will get more attention.

from xebium.

bvklingeren avatar bvklingeren commented on September 15, 2024

The problem is known to be persistent with the newer versions of Selenium up until version 2.7

from xebium.

cwortel avatar cwortel commented on September 15, 2024

The problem persists with 2.14 and the sample test also exposed some other unexpected behaviour:

| verifyValue | Suites | blah2 |
INFO com.xebia.incubator.xebium.SeleniumDriverFixture - Command 'getValue' returned 'blahblah2' => ok
INFO com.xebia.incubator.xebium.SeleniumDriverFixture - Command processor stopped

It seems getValue is succeeds with only part of the value being correct (it accepts blah2 to be correct, even-though the actual value is "blahblah2")

from xebium.

amolenaar avatar amolenaar commented on September 15, 2024

Fixed in upcoming Selenium 2.20 release.

from xebium.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.