Repository navigation
|
In my appium mobileweb(A responsive website) test automation project (Appium v3.2, JDK 21) with real devices like Android with Chrome browser ( Android v16.0 Samsung Galaxy S21 FE, Chrome v147.0), and iOS(v.26.4.2, iphone 11) with Safari browser, particularly while using iPhone device with Safari browser is automatically submitting itself on a specific new page loading, with out the automation code clicking the button designated for submitting the page. This is neither happening on Samsung phone with Chrome browser nor while manually checking on the same iPhone device using the same Safari browser. As a back ground, a similar but different problem occurred with the same set up. Like when a page has DropDown Listbox, and it's one of the visible list item is selected by its text value, it is triggering a page submission, again ONLY on iOS platform with Safari browser while Android platform with Samsung Galaxy using Chrome browser is working as expected. Is it because of some style sheets and JavaScript running on our eCommerce Responsive website ? Is there any means to verify this case ? My knowledge of stylesheets and JavaScript are none to poor. Please help, |
Replies: 1 comment 1 reply
|
This is likely related to how Mobile Safari on iOS handles touch events, focus changes, and form submissions differently from Chrome on Android. Since:
the cause is probably one of these:
How to verifyYou can inspect Safari events using:
Also try:
This looks more like a Safari/iOS event handling issue combined with website JS behavior rather than an Appium core bug itself. |
This is likely related to how Mobile Safari on iOS handles touch events, focus changes, and form submissions differently from Chrome on Android.
Since:
the cause is probably one of these:
iOS Safari auto-triggering
change/submiteventsonchange,onsubmit,blur, etc.) may automatically submit the form when a dropdown value changes or when focus shifts.Appium interaction behavior on iOS