Trying to buy 2 security cameras from Ubiquiti. I cannot, for the life of me, figure out how to navigate to the iframe. I've been trying to do this for probably 4-5 hours total now.
Right now, I have this: (wd is webdriver, chrome)
wd.switch_to.frame(wd.find_element("title", 'card-fields-iframe'))
credit_card_number = wd.find_element("xpath" , '//*[@id="number"]')
type(credit_card_number)
credit_card_number.send_keys("1234123412341234")
I can't use an ID to hit the iframe because it changes every time you access the page, as does the name. The only constant I've seen is title but idk if that works. Any help would be apprecaited.