Selenium with VueJS

28 views
Skip to first unread message

Furr J

unread,
Jun 21, 2018, 4:43:40 AM6/21/18
to Selenium Users
Hi,

Is anybody familiar with Selenium in combination with VueJS? 

I have the following question. It's possible to create the following HTML in vuejs

<button data-v-e76fa316="" class="orange-button">Poll beantwoorden</button>

Because of the 'data-v-e76fa316' item it's not possible to use the class in xpath or the css.

Is there a work-around so that I can use the class?
There are no ID's to use. If there is no work-around I have to create ID's 

Lewis Williams

unread,
Aug 13, 2020, 2:36:13 AM8/13/20
to Selenium Users
Hello from 2020... 

If anyone stumbles upon this and needs help, i believe this would work for an xpath:
//button[contains(text(), 'Poll beantwoorden')]

This does suck because if that text changes your xpath will stop working, but it should work. 

bharath kumar

unread,
Aug 13, 2020, 11:18:09 AM8/13/20
to seleniu...@googlegroups.com
Hi,
Thank you for your quick response.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/a8c16366-1ed7-4550-b342-4ec275e370b5n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages