Unable to find
I've requested access to the FamilySearch API for an indexing project my family has been working on. We have access to some records and are recording them in a Google Sheet. I am working to automate the process of transferring the data from the Google Sheet to FamilySearch (it will involve basically creating new people, attaching records, and the likes; all people added will be reviewed by real humans to ensure there are no errors).
It's been a few months now and it looks like my request to the API wasn't approved, and so I've continued to develop this automation process using Selenium for Python. And I've got it mostly working, but I'm running into a few frustrating tricks that are making it much harder than it needs to be.
There are some elements on FamilySearch that are easily accessible by XPATH, for example in the top bar. If I inspect, copy the full XPATH, and then CTRL + F search for it, then the element will be highlighted.
However, if I try to do the same with any element after this main tag,
I can still copy the XPATH but I cannot search for it and find it. Selenium can't find child elements of this main tag by XPATH or anything else either.
So I've resorted to sending a bunch of tab keys and enter keys to select buttons, but this is really hard because I can't implicitly wait for elements to appear, I have to count how many times to press tab, it is easily breakable by small changes in the site, and I can't read content on the site (e.g., to know things like if it's detected possible duplicates).
I've attempted using .switch_to in Python, but <main> isn't an <iframe> or a <frame> so that didn't work. I've tried with both the ChromeDriver and GeckoDriver for Firefox. Any thoughts?