This site is in read only mode. Please continue to browse, but replying, likes, and other actions are disabled for now.
1 / 3
Mar 2018

Hi,
I have to skip the alerts, popups and splash screens, when I m getting page source of the main activity. I just need to bypass all the alerts, popups and splash, loading screens. how to do that ?

Thank you.

  • created

    Mar '18
  • last reply

    Jan '19
  • 2

    replies

  • 285

    views

  • 3

    users

I think you have to handle Alerts n popups and its very easy to handle them but not sure how to handle splash screens

9 months later

Hi,
I have the same issue. Can you please specify a method other than below?

  1. driver.switchTo().alert();
  2. driver.elementByXPath
  3. driver.elementById

I tried all of these options and still did not get a result in the following structure:

<android.widget.FrameLayout>
<android.widget.LinearLayout>
	<android.widget.FrameLayout resource-id="android:id/content">
		<android.widget.LinearLayout>
			<android.widget.ImageView resource-id="xx/iv_custom_alert_icon">
			<android.widget.TextView resource-id="xx/tv_custom_alert_title">
			<android.widget.TextView resource-id="xx/tv_custom_alert_subtitle">
		<android.widget.LinearLayout>
			<android.widget.TextView resource-id="xx/v_custom_alert_positive"> 

alternative suggetion would be appreciated, thanks.