question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feature Request] Optimize controls for test automation

See original GitHub issue

Problem to solve

Test automation is key for DevOps. Whereas most (if not all) vuetify-components are automatable with selenium, ranorex, tosca & co, some do make live of a test automator unnecessary hard. The wish is: make each component in every configuration as easy automatable as possible.

Proposed solution

E.g. a select box:

v-select  id="contest_persons_groups" :items="registrationtypes" v-model=editedItem.type
                              label="Einzelperson oder Gruppe" item-text="value" item-value="ID"></v-select>

results in the following html code:

<div role="combobox" class="v-input v-text-field v-select v-input--is-label-active v-input--is-dirty v-input--is-focused theme--light primary--text">
    <div class="v-input__control">
        <div class="v-input__slot">
            <div class="v-select__slot">
                <label for="contest_persons_groups" class="v-label v-label--active theme--light primary--text" style="left: 0px; right: auto; position: absolute;">Einzelperson oder Gruppe</label>
                <div class="v-select__selections">
                    <div class="v-select__selection v-select__selection--comma">Einzelperson</div>
LOOK HERE -->         <input id="contest_persons_groups" readonly="readonly" type="text" autocomplete="on" aria-readonly="false">**
                </div>
                <div class="v-input__append-inner">
                    <div class="v-input__icon v-input__icon--append"><i aria-hidden="true" class="v-icon fas fa-caret-down theme--light primary--text"></i></div>
                </div>
            </div>
            <div class="v-menu"></div>
        </div>
        <div class="v-text-field__details">
            <div class="v-messages theme--light primary--text">
                <div class="v-messages__wrapper"></div>
            </div>
        </div>
    </div>
</div>

The id went to the input which is not clickable, as it is readonly. You had to solve this with nasty xpath-give-me-your-parent-parent-magic: $('//*[@id="country"]/..').click() if the id was set to a clickable div, the automation code would be so much nicer and more readable: $('#country"').click() Now I am aware, that this may be tricky. If the dropdown was typable, of course, having the id on the input were totally correct. So there is decision magic necessary.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:17
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
hcderaadcommented, Sep 13, 2020

Just an update, this issue is currently in progress and will be resolved as part of a patch release under v2.3.

Thanks for your work on this. Is there any ETA on this issue?

5reactions
johnleidercommented, Aug 19, 2020

Just an update, this issue is currently in progress and will be resolved as part of a patch release under v2.3.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Maximize feature flag testing & QA - Optimizely
Best practice: Use mocks and stubs to control feature and experiment states. Focus on individual code paths to ensure proper integration and business...
Read more >
Top 9 Tips to Increase UI Automation Speed - Applitools
Wondering how to speed up your UI automation tests? Learn effective and actionable tips to help your automated UI tests run faster and...
Read more >
Test Automation Best Practices - SmartBear
These test automation best practices a successful foundation to start improving your software quality. Thorough testing is crucial to the success of a ......
Read more >
16 Selenium Best Practices For Efficient Test Automation
During the course of my career in automation testing with Selenium, I have come across many folks who have complaints about the stability ......
Read more >
Top 15 UI Test Automation Best Practices - BlazeMeter
One of the main best practices you should consider at first - do not rely on UI test automation alone. Ideally, you should...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found