0

I am unable to Use SELECT class on NGXTELLINPUT field for angular with SELENIUM using python because there is a list inside DIV tag of Input , and it is throwing a same error every time that "SELECT cannot be used for DIV" Following is the code which i had written for option in alloptions: print(option.text)

element2 = driver.find_element_by_xpath("//ngx-intl-tel-input[@name='phone']") drp2 = Select(element2)

drp2.select_by_visible_text('Pakistan (‫پاکستان‬‎)')

time.sleep(5) driver.close()

Following is the html code for website which im testing

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.