Handling user authentication popup in Mobile Tablet

0 votes

I am working on a code using Selenium Webdirver and Appium for Mobile website.How do I handle user authentication popup?

Jul 3, 2018 in Selenium by Martin
• 4,320 points
673 views

1 answer to this question.

0 votes

You can get xpath/id of popup element and buttons, using these you can perform action on these buttons.

@findby(id="android/button1")

WebElement allow_button;

public void clickonAllow()

{

    allow_button.click();

}

As per requirement you can click on button "Allow" / "Deny" or "Accept" or "Reject"

In web you can try driver.switchTo().alert().accept(); or driver.switchTo().alert().deny();

answered Jul 3, 2018 by Samarpit
• 5,910 points

Related Questions In Selenium

+2 votes
3 answers

How can we handle authentication popup in Selenium WebDriver using Java

1) By passing user credentials in URL. String ...READ MORE

answered Aug 31, 2020 in Selenium by Sri
• 3,190 points
28,407 views
0 votes
1 answer
0 votes
1 answer

Handling JavaScript Alert window in Selenium WebDriver

You should try using waits for alerts ...READ MORE

answered Apr 10, 2018 in Selenium by ghost
• 1,790 points
2,145 views
0 votes
1 answer

Handling calendar popup using Selenium WebDriver

You are selecting wrongly your elements in ...READ MORE

answered Apr 17, 2018 in Selenium by Shubham
• 13,490 points
4,180 views
0 votes
2 answers

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,500 points
12,714 views
0 votes
2 answers

Problem while using InternetExplorerDriver in Selenium WebDriver

enable trusted connection  in internet explorer by ...READ MORE

answered Aug 31, 2020 in Selenium by Sri
• 3,190 points
8,608 views
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,910 points
6,681 views
0 votes
2 answers

How to use such xpath to find web elements

xpath are two types. 1) Absolute XPath:    /html/b ...READ MORE

answered Sep 3, 2020 in Selenium by Sri
• 3,190 points
7,551 views
0 votes
1 answer

Selenium grid 2 in chrome browser

The problem is in -Dwebdriver arguments. Maybe you should do ...READ MORE

answered Apr 27, 2018 in Selenium by Samarpit
• 5,910 points
1,077 views
0 votes
1 answer

Maximizing the browser window in Selenium WebDriver using C#

Check this first: http://code.google.com/p/selenium/issues/detail?id=174 You Can use the JavascriptExector as follows: public ...READ MORE

answered May 2, 2018 in Selenium by Samarpit
• 5,910 points
843 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP