Git Product home page Git Product logo

Comments (9)

fhoeben avatar fhoeben commented on June 8, 2024

It stopped working. Does nothing happen, or is an error shown?
Is the 'fieldname' the text of a label, or a technical selector, or the text of of a table heading, or ...?

from hsac-fitnesse-fixtures.

violinner avatar violinner commented on June 8, 2024

Nothing happens, and there is no error. The next step times out waiting for a change.
The field is:
<input class="text" type="text" name="fieldname" tabindex="1" size="20" autocomplete="off">

I notice that the text tag is not terminated. I am fixing that to see if it makes a difference.

from hsac-fitnesse-fixtures.

fhoeben avatar fhoeben commented on June 8, 2024

I don't see the field in your comment? Maybe you need to add some pre-formatting to the post.

Can you try with 2.6.0-SNAPSHOT (I would potentially expect more problems there, but it is using a newer Selenium).

I did a quick check with a page, HsacExamples.SlimTests.BrowserT.ests.ScriptTest, its 'enter as' still works in firefox for 2.6.0-SNAPSHOT

from hsac-fitnesse-fixtures.

violinner avatar violinner commented on June 8, 2024

The text tag is fixed, above.
What is the URL or download procedure for 2.6.0-SNAPSHOT ?

from hsac-fitnesse-fixtures.

violinner avatar violinner commented on June 8, 2024

I built 2.6.0-SNAPSHOT, and still have no luck with "enter as" on my page.
Fixing the page, and trying HsacExamples.SlimTests.BrowserTests.ScriptTest...

from hsac-fitnesse-fixtures.

fhoeben avatar fhoeben commented on June 8, 2024

Did the page work with a previous version? Selecting an input based on its name attribute has not worked since 2.4.0. Can you try:
|enter|${value}|as|name=fieldname|

Input tags don't need to be terminated in HTML5, since they're not allowed to have content. Silly, but that should make no difference.

from hsac-fitnesse-fixtures.

violinner avatar violinner commented on June 8, 2024

(I hope you meant that name selection has worked since 2.4.0.)
jumping for joy-
It worked when I changed my test to:
|enter|${value}|as|name=fieldname|

This is great - thanks.

from hsac-fitnesse-fixtures.

fhoeben avatar fhoeben commented on June 8, 2024

Before 2.4.0 you did not have to use the name= prefix to select by name.

The reason this is now required is that I want to define my tests using texts/words as visible to the end-user, and the name is not visible.
Any chance your input has an associated label, or is in a table row where another cell is a th, or...
How would an end-user refer to this input field? How do people using a screenreader know what to put in this input? The fixture attempts to allow you to refer to the input in your tests using these concepts.

from hsac-fitnesse-fixtures.

violinner avatar violinner commented on June 8, 2024

My input is indeed associated with a label, and the script finds the field through the visible label.
I found the behavior changed when upgrading from an old version of HSAC.
Thanks.

from hsac-fitnesse-fixtures.

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.