vue get element by id
<!-- In template -->
<div id="myDiv" ref="myDiv">This is a div</div>
<!-- In script, inside a function or wherever you need it -->
<script>
myDiv = this.$refs.myDiv
</script>
vue get element by id
<!-- In template -->
<div id="myDiv" ref="myDiv">This is a div</div>
<!-- In script, inside a function or wherever you need it -->
<script>
myDiv = this.$refs.myDiv
</script>
vue get element
<v-select
label="label"
v-model="ccRcode"
ref="ccRcode"
:items="getData"
item-text="descWithCode"
item-value="code"
value="{ ccRcode }"
data-cy='select-input'
></v-select>
//In your JS code
cy.get('[data-cy=select-input]').select('optionValue')
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us