Is there an existing issue for this?
What would you like to add?
There are two types of NLPs that are available in Testsigma to capture value from a field.
- Store text from the field
- Store value from the field
What's the problem (As described by Amit on Discord):
Sometime during automation, we tend to presume that the data entered in fields are in form of text but in this case, the data that we are entering in the particular field is going to a placeholder / is in form of a value. So there we need to use a different NLP i.e - Store value from the field instead of storing the text.
Basically, in terms of selenium when we use Store text NLP it uses the - element.getText()
which is empty here, rather when we use to store value NLP that simply means --- element.getAttribute("value")
which returns the actual value which appears to be as text.
Reference video of Issue that I encountered: https://app.birdeatsbug.com/sessions/1oyjn7qy_ZcbCY13OGqQOBuWr1IK82wbF02r-fTkACtL
Reference video of the cause behind this issue: https://watch.screencastify.com/v/8jMX6FuELuwnN8x8edOg
Why should this be worked on?
Ideally, Low code users (assume a BA, or PO) do not need to know about all this finer nasty stuff that usually selenium programmers learn as the intent of the tool is to allow users to author using NLP.
This can be auto-computed if the value is "".
We can also give some triggers for Smart AI that can enable all these special features. This can add to a new kind of feature to testsigma. I am open to discuss more on this.
Other details
"Loud thinking: What could be the bad consequence of this?" Do you see any?