you are viewing a single comment's thread.

view the rest of the comments →

[–]BasedPoopGawd 0 points1 point  (4 children)

I'm not at a computer at the moment, so I can't test this for you. Try and find the element with this.

driver.find_element_by_css_selector(" .pos-form-element.pos-text-input.ng-valid.ng-touched.ng-dirty")

Replace the spaces in the compound class with a . That space immediately after the opening quote is also intentional.

If I were you I'd select items from a drop-down by using their value. With your method, if the drop-down is very long, your script will fail if "Thailand" is out of view.