0👍
Try printing the source code at this time and you will fine out how many elements are in DOM with similar id
- [Vuejs]-How to deal with testing that uses uuid inside the component
- [Vuejs]-Can we use library function without calling 'this'?
0👍
Try this one
element(by.css('input[type = "text"]'))
- [Vuejs]-Need to send request to backend api (LARAVEL) on specific route VUE
- [Vuejs]-FormData empty from multi image uploader
0👍
Finally found the answer after frustrating 10 hours of digging through.
- Set “:name” for . Don’t set “:id”. Like this :name=”currentField.id”
-
In Protractor code, use the name to fetch the element. Like this –
var inputtxt=element(by.css(“input[name=’txt1′]”)); -
Don’t use getText(), it behaves weird, return empty. Use inputtxt.getAttribute(‘value’)) where “value” is the underlying field assigned to “v-model”
- IMPORTANT – allow the page to load fully by setting browser.sleep(x ms). Else the element gets retrieved multiple times, protractor throws a warning “More than one element is located….”
- [Vuejs]-When I click on one category, subcategores for all categories are showing
- [Vuejs]-Issue using a Vue component (with video.js) in rails
Source:stackexchange.com