tanmaybaviskar / nets-qa-Tanmay

Pracice automation assignment for automation of pia android app
0 stars 0 forks source link

Find Customer id edittext #7

Open nets-qa opened 3 years ago

nets-qa commented 3 years ago

From test cases, you find edittext view by calling function driver.findElement(By.name("Customer id")). Could you elaborate how you are using this function to refer to the edittext view component with the resource id customer_id_et?

<EditText
                    android:id="@+id/customer_id_et"
                    android:layout_width="150dp"
                    android:layout_height="wrap_content"
                    android:layout_below="@+id/customer_id_tv"
                    android:layout_centerHorizontal="true"
                    android:layout_marginTop="10dp"
                    android:background="@drawable/login_input_bg"
                    android:gravity="center"
                    android:hint="@string/customer_id_hint"
                    android:imeOptions="actionDone"
                    android:inputType="number"
                    android:letterSpacing="0.5"
                    android:maxLength="6"
                    android:maxLines="1"
                    android:padding="2dp"
                    android:textColor="@color/dark_blue"
                    android:textColorHint="@color/light_gray"
                    android:textSize="20sp" />
tanmaybaviskar commented 3 years ago

i have made typo. As i don't have setup on my personal mahine, i did it on another machine. So it should be id instead of name and customer_id_et.

As my emuator was not working smoothly, i took that name. So locators might have been wrong but my goal is to show that conceptwise it is strong.

nets-qa commented 3 years ago

Please correct all reported issues here and push the working code and test report including results of these test cases.