Raconeisteron / selenium-vba

Automatically exported from code.google.com/p/selenium-vba
0 stars 1 forks source link

Auto complete text box brings up a drop down and I need to click the value #59

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Operating system and version (32/64bit) :32
.Net Framework version :
Office name and version(32/64bit) :
Browser name and version :Fire Fox
SeleniumWrapper version :16

What steps will reproduce the problem with a public website ?
1.In an auto complete text box, type the word 'cardio'
2.The drop down automatically comes as dropdown below the text box as multiple 
choices like Cardiology as one of the list
3.I need to select the same and click on that using selenium VBA
4.The id is generated randomly as ui-id-4 or 7 based on what we type as cardio 
or cardiol etc

What is the expected output? What do you see instead?
input id="query" for the text box and for the momentary drop down
ul id="ui-id-1" 

<!DOCTYPE html>

<html class="js no-flexbox flexboxlegacy rgba hsla multiplebgs background…rms 
csstransforms3d csstransitions fontface generatedcontent" lang="en-US" style="">

    <head></head>
    <body id="session" class="pages pages_dashboard">
        <header class="app-header"></header>
        <div id="content">
            <section id="search">
                <form class="search" method="post">
                    <h1></h1>
                    <fieldset>
                        <input id="query" class="autocomplete ui-autocomplete-input" type="text" placeholder="specialty, procedure, or name" name="query" autocomplete="off">
                        </input>
                        <span class="ui-helper-hidden-accessible" role="status" aria-live="polite"></span>
                        <div class="location"></div>
                    </fieldset>
                </form>
                <article class="dashboard-article coverage"></article>
                <article class="dashboard-article healthy"></article>
                <article class="dashboard-article recommendations"></article>
                <nav id="mobile_nav" class="mobile"></nav>
            </section>
            <div id="stay-healthy" class="mfp-hide popup-block--colored popup-block--island popup-block--large"></div>
        </div>
        <footer class="app-footer"></footer>
        <script></script>
        <ul id="ui-id-1" class="ui-autocomplete ui-menu ui-widget ui-widget-content ui-corner-all" tabindex="0" style="z-index: 1; display: none;"></ul>
        <script src="https://js-agent.newrelic.com/nr-346.min.js"></script>
        <div style="display: none;"></div>
        <script type="text/javascript" src="https://beacon-5.newrelic.com/1/d53728e15e?a=2183703&ap=228&…:1210,%22rpe%22:1346%7D,%22navigation%22:%7B%22rc%22:1%7D%7D"></script>
    </body>

</html>

Please provide any additional information below.
<!DOCTYPE html>

<html class="js no-flexbox flexboxlegacy rgba hsla multiplebgs background…rms 
csstransforms3d csstransitions fontface generatedcontent" lang="en-US" style="">

    <head></head>
    <body id="session" class="pages pages_dashboard">
        <header class="app-header"></header>
        <div id="content">
            <section id="search">
                <form class="search" method="post">
                    <h1></h1>
                    <fieldset>
                        <input id="query" class="autocomplete ui-autocomplete-input" type="text" placeholder="specialty, procedure, or name" name="query" autocomplete="off"></input>
                        <span class="ui-helper-hidden-accessible" role="status" aria-live="polite"></span>
                        <div class="location"></div>
                    </fieldset>
                </form>
                <article class="dashboard-article coverage"></article>
                <article class="dashboard-article healthy"></article>
                <article class="dashboard-article recommendations"></article>
                <nav id="mobile_nav" class="mobile"></nav>
            </section>
            <div id="stay-healthy" class="mfp-hide popup-block--colored popup-block--island popup-block--large"></div>
        </div>
        <footer class="app-footer"></footer>
        <script></script>
        <ul id="ui-id-1" class="ui-autocomplete ui-menu ui-widget ui-widget-content ui-corner-all ui-autocomplete-disabled ui-state-disabled" tabindex="0" style="z-index: 1; display: none; top: 275.5px; left: 133.6px; width: 575px;" aria-disabled="true">
            <li class="ui-autocomplete-category"></li>
            <li class="ui-menu-item" data-subset="specialties" role="presentation"></li>
            <li class="ui-menu-item" data-subset="specialties" role="presentation"></li>
            <li class="ui-menu-item" data-subset="specialties" role="presentation"></li>
            <li class="ui-menu-item" data-subset="specialties" role="presentation"></li>
            <li class="ui-menu-item" data-subset="specialties" role="presentation"></li>
        </ul>
        <script src="https://js-agent.newrelic.com/nr-346.min.js"></script>
        <div style="display: none;"></div>
        <script type="text/javascript" src="https://beacon-5.newrelic.com/1/d53728e15e?a=2183703&ap=167&…6536,%22rpe%22:16596%7D,%22navigation%22:%7B%22rc%22:1%7D%7D"></script>
        <div id="modal_layer" style="opacity: 0.95; display: block;"></div>
        <div id="change_procedure_modal" class="modal" style="top: 50%; left: 50%; margin-top: -209.5px; margin-left: -175px; display: block;"></div>
    </body>

</html>

Original issue reported on code.google.com by sundarj6...@gmail.com on 7 Mar 2014 at 1:30

GoogleCodeExporter commented 8 years ago
What is the script generated by the recorder and when does it break in your 
case?

Original comment by florentbr on 7 Mar 2014 at 6:49

GoogleCodeExporter commented 8 years ago

Original comment by florentbr on 2 Apr 2014 at 5:00