Hello sir,
i am trying to create an xpath expression that clicks on the next element in the list every time the loop gets executed this is the xpath of the element :
/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.FrameLayout[@android:id='@com.sgiggle.production:id/action_bar_root']/android.widget.FrameLayout[@android:id='@android:id/content']/android.widget.FrameLayout[@android:id='@com.sgiggle.production:id/container']/android.view.ViewGroup[@android:id='@com.sgiggle.production:id/coordinator']/android.widget.FrameLayout[@android:id='@com.sgiggle.production:id/design_bottom_sheet']/android.widget.LinearLayout[@android:id='@com.sgiggle.production:id/root_layout']/androidx.viewpager.widget.ViewPager[@android:id='@com.sgiggle.production:id/leaderboardViewPager']/androidx.recyclerview.widget.RecyclerView/android.widget.FrameLayout/android.view.ViewGroup[@android:id='@com.sgiggle.production:id/topLeaderBoardContent']/androidx.recyclerview.widget.RecyclerView[@android:id='@com.sgiggle.production:id/list']/android.view.ViewGroup[.//android.widget.TextView[@android:text='Saumit' and @android:id='@com.sgiggle.production:id/username']]
like in the first attacment
also with in this element which is the username there is another element which shows the number of points the user has gifted to me
xpath : /android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.FrameLayout[@android:id='@com.sgiggle.production:id/action_bar_root']/android.widget.FrameLayout[@android:id='@android:id/content']/android.widget.FrameLayout[@android:id='@com.sgiggle.production:id/container']/android.view.ViewGroup[@android:id='@com.sgiggle.production:id/coordinator']/android.widget.FrameLayout[@android:id='@com.sgiggle.production:id/design_bottom_sheet']/android.widget.LinearLayout[@android:id='@com.sgiggle.production:id/root_layout']/androidx.viewpager.widget.ViewPager[@android:id='@com.sgiggle.production:id/leaderboardViewPager']/androidx.recyclerview.widget.RecyclerView/android.widget.FrameLayout/android.view.ViewGroup[@android:id='@com.sgiggle.production:id/topLeaderBoardContent']/androidx.recyclerview.widget.RecyclerView[@android:id='@com.sgiggle.production:id/list']/android.view.ViewGroup/android.widget.TextView[@android:id='@com.sgiggle.production:id/points' and @android:text='107']
As shown in the secound attachment
I want to create an xpath expression that only clicks the username if the points sent by him to me is greater than 100