If you run into issues with conditional buttons or other interactive elements on Safari browsers in iOS devices, consider these actions:
- Check Data Entry: Ensure that all required fields are filled in with the correct format and data. Client-side validation may prevent the button from enabling if the data doesn't meet specific criteria.
- Check Client-Side Validation: Is a validation check failing in the background? If yes, fix it first. Then, try again.
- Simulate User Interactions Accurately: Ensure that your script correctly simulates user interactions like keypresses, focus changes, and blur events.
- Use Explicit Waits: Give the web app enough time to load and process information. If your script moves too quickly, elements might not be ready for interaction.
If these don’t fix the issue, use Safari's Developer Tools to inspect the DOM. This can help identify the problem.
If none of these actions work, consider enabling the button through your script using the following code:
document.querySelector('button[type="submit"]').removeAttribute("disabled")
If this doesn't work either, contact Support.