Currently I am using Appium, Selenium, Java, TestNG for native app. I am doing automation for iOS and Android and both functionality is same but yes element identifier is different in iOS and android. None of element have same name. Let’s say for login button element identifier is in following way
For Android @AndroidFindBy(id = "com.abc.bot:id/home_screen_sign_in_btn") private MobileElement signinbtn; For iOS @FindBy(xpath="//XCUIElementTypeButton[@name='Log In']") private WebElement logInButton;
Apart from that we are using CircleCI and for iOS and Android have different pipeline and different branch too. My question is, should I keep iOS and Android in same repo or different branch. Can someone explain pros and cons please? Should I use same repo?
Hi all, anyone knows which is the best approach to verify if the input field does not accept special characters, e.g: "$#@%%^&*(" , either on Android or iOS?
For example, I have an input field that only accepts numeric characters, any other special characters besides allowed characters are not sent to the field no matter what users pressing on the keyboard itself.
I try to use 'Send Keys' function and then assert the input field's text equals blank (input values are not filled), but Appium can still send the restricted characters successfully.
To be honest:
<input type="number" >then you shouldn't even test it because this is default behavior, if it's broken, the it's broken for the whole world. There are also some functions for that for native code
I'd always advice to avoid these type of tests through the UI, especially on mobile because they are 3-6 times slower than on desktop browsers