1

I am quite new to Python Selenium so I searched the problem but I cannot find the answer.

I have a website that I want to entry some data with Selenium. You can see a screen shot of the web site below.

I had to censor some parts due to privacy of my client

I can click the button indicated by the red arrow "1" in the image. After this action, website opens a pop-up page (maybe it is iframe I dont know what it is) and I want to select an item from "ITEM" dropbox and click the button indicated by the red arrow "2" in the image. The HTML code of the relevant of the element:

<span class="select2-selection__rendered" id="select2-ComboName-container" title="Seçiniz">Seçiniz</span>

The whole HTML of the relevant of the element:

<div class="form-body">
        <div class="row">
            <div class="col-md-6">
                <div class="form-group ">
                    <label class="control-label col-md-3">
                        <span class="text-danger">*</span><b>ITEM &nbsp;&nbsp;&nbsp;&nbsp;:</b>
                    </label>
                    <div class="col-md-9">
                        <div class="input-icon right">
                            <i class="fa"></i>
                            <select class="form-control select2" data-val="true" data-val-required="Bu alanın doldurulması zorunludur." id="ComboName-container" name="ComboName-container" required="required"><option value="">Se&#231;iniz</option>
<option value="10112">Option 1</option>
<option value="20485">Option 2</option>
<option value="21824">Option 3</option>
<option value="30474">Option 4</option>
<option value="93340">Option 5</option>
</select>
                        </div>
                    </div>
                </div>
            </div>
        </div>
</div>

Selenium can not find any element located on this pop-up page. I have NoSuchElementException error. Do I have to specify the pop-up page to Selenium. If answer is "Yes" How can I do it?

0 Answers0