Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Facebook button unreachable in testcafe #1999

Closed
neilmatillano opened this issue Dec 13, 2017 · 8 comments · May be fixed by marcusrc/testcafe#6, marcusrc/testcafe#7, marcusrc/testcafe#8 or marcusrc/testcafe#34
Assignees
Labels
STATE: Auto-locked An issue has been automatically locked by the Lock bot.

Comments

@neilmatillano
Copy link

neilmatillano commented Dec 13, 2017

Are you requesting a feature or reporting a bug?

Reporting a bug

What is the current behavior?

After entering facebook login details and pressing login, and then a continue as "Profile_Name" page will show and then another page to confirm allow app to access facebook details.
And the issue is that the button to confirm is in the bottom of the page, testcafe is not able to click confirm this button because of the hammerhead bar that is being overlayed.

screen shot 2017-12-13 at 11 14 45

What is the expected behavior?

testcafe should be able to click the button

How would you reproduce the current behavior (if this is a bug)?

go to an app or site that uses facebook login and you have to register as first time user.

Provide the test code and the tested page URL (if applicable)

Tested page URL:

Test code

Specify your

  • operating system: mac os sierra v 10.13.1
  • testcafe version: 0.18.6-dev20171211
  • node.js version: v8.9.1
@helen-dikareva helen-dikareva self-assigned this Dec 13, 2017
@LavrovArtem
Copy link
Contributor

Hi @neilmatillano,
As far as I understood, you are trying to log in to your site via a Facebook account. This authentication creates a new browser window for its own purposes. Unfortunately, we do not support testing in multiple browser windows.
This issue is a duplicate of #912.

@neilmatillano
Copy link
Author

neilmatillano commented Dec 13, 2017

@LavrovArtem : it's a redirect is on the same window, it's not opening multiple browsers.
If you see the screenshot, the issue is that the button at the bottom is not reachable because of the hammerhead ui overlay. It's not able to select the control in testcafe

@LavrovArtem
Copy link
Contributor

Hi @neilmatillano,
With TestCafe, page just loads a new window URL into the current tab instead of opening a new browser window. Unfortunately, the Facebook authentication works only with multiple windows. For example, without Testcafe, try to click the LOG IN WITH FACEBOOK button and close the tab with your site. In the new authentication window, you will encounter the same problems.

@neilmatillano
Copy link
Author

@LavrovArtem : Noted on this , do you have a timeline for this fix? Thanks!

@LavrovArtem
Copy link
Contributor

@neilmatillano
This is in our plans for the next releases but not we can't provide you with estimates. We let you know when we have any results.

@neilmatillano
Copy link
Author

@LavrovArtem : thanks for the reply. But is there a workaround I can do? Like remember my login in facebook prior to running the tests so I can just go directly to the main page? With or withour logging in?

@LavrovArtem
Copy link
Contributor

Hi @neilmatillano,
I've tried to find a workaround but it didn’t exist. The result of searching is DevExpress/testcafe-hammerhead#1428.

@lock
Copy link

lock bot commented Mar 28, 2019

This thread has been automatically locked since it is closed and there has not been any recent activity. Please open a new issue for related bugs or feature requests. We recommend you ask TestCafe API, usage and configuration inquiries on StackOverflow.

@lock lock bot added the STATE: Auto-locked An issue has been automatically locked by the Lock bot. label Mar 28, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Mar 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.