on a webpage there is a multi-select drop-down, once user selects any option from the drop-down, the required must .

index.html

<div class="form-group">
    <label class="col-xs-3 control-label">Bank Script</label>
    <div class="col-xs-5 selectContainer">
        <select name="colors" class="form-control" multiple title="Choose 
      Script">
            <option value="black" onclick="goPython()">US BANK</option>
            <option value="blue">BOKF</option>
            <option value="green">COMMERCE BANK</option>
            <option value="orange">MICHIAS</option>
            <option value="red">TD BANK</option>
            <option value="yellow">WELSFARGO</option>
            <option value="white">BOA</option>
        </select>
    </div>
  </div>


<script>
    function goPython(){
       os.system("C:mydjangowebsiteautomationscriptdistUSBANK.exe")
    }
</script>

views.py

def index(request):
return render(request, 'automation/index.html')

urls.py

app_name='automation'

urlpatterns = [
url(r’^$’, views.index, name=’index’),][enter image description here]1



Source link https://sqa.stackexchange.com/questions/34212/run-a-selenium-script-on--the-script-from-a-multi-select-in-

LEAVE A REPLY

Please enter your comment!
Please enter your name here