Replies: 2 comments 1 reply
-
Setting the ID on I solved it by adding a child element with an ID to the dialog content and looking for an element with this ID.
|
Beta Was this translation helpful? Give feedback.
0 replies
-
You can use |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I need to set the ID of a dialog so I can use selenium in my e2e test to check if the dialog is visible or not.
In my template I have:
<v-dialog persistent max-width="490px" :value="show()">...</v-dialog>
which results in the following HTML:
<div class="v-dialog v-dialog--active v-dialog--persistent" style="transform-origin: center center; max-width: 490px;">
In my test I am using Selenium Python and I would like to select the
div
withfind_element_by_id()
then useis_displayed()
to check if it is visible. But I have some trouble assigning an ID to the<div>
. I tried addingid="myId"
to<v-dialog>
but this ID never shows up in HTML.How can I set the ID of the dialog in such a way it shows up in HTML. Or is there another way to select a dialog with selenium?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions