How to read element on Page when its loading in selenium? - selenium-webdriver

I am trying to automate a Gmail login Page where I face one issue.
Replication steps:
Update User Name and Password
Click on Sign Button.
There will be "Loading Page" before the main Inbox Page. I need to validate that this Loading page appeared after the sign-in click and before Inbox Page in Gmail.
Please suggest a solution for this.

Related

How to add go to button on my landing page

I have two separate projects and two separate domains called (.com & app.com).
the (.com) domain project is the landing page of my website and this page is developed using HTML and CSS. in this page I have one button called login if the user clicks on the login button the user is redirected to the app.com project.
so my question is how to check whether the user is authenticated or not in my (.com) domain project.

Unable to prevent browser back click after redirection

I'm Using Next.js in my project. I am having payment option in my application., Once I got redirected from the Payment gateway I want to stop user clicking browser back button.
currently, If user click browser back buton it goes back to payment gateway.
I am using next-routesfor routing, redux for state management.,
I tried to stop browser back navigation with this package disable-browser-back-navigation, but the issue remains same.
can anyone help me on this.

AngularJs handling browser back button and forward button

I want to create a login page using angularjs and html5 .Now when the I give the credentials in the login page it is directed to a new page using angular routing.When I press the sign out button it will navigate back to the login page.Now when I press the forward browser button without giving the credentials it should not open the same page but it should load some other page like session time out or some error page.How can I handle this using AngularJs?
Don't keep logout and login in routing try following codes-
windows.location.replace=('logout_url')
//Try this if above doesn't work
windows.location=('logout_url')

how to redirect to current page in joomla 3.x after login

I've not so experience in joomla.
I'm facing 2 problems to build a site.
How can I redirect user to current page after login?
Logged in user is seeing different layout for the pages
Question 1 - You have two options:
A. If you have the login form vía menu item, you can see an option called Login Redirect and Logout Redirect in:
Your menu item > Options Tab
B. If you are using the Login Module you can see similar options for Login and Logout Redirection.
Question 2 - Different Layout:
A. Check the Template Style for your users in:
Users > Manage > Your User > Basic Settings Tab
B. In your menu item you also have an option called Template Style in the Details Tab check the default template in the user menu items.
Regards.

Oracle ADF Mobile Taskflow

I am working on Oracle ADF Mobile application.
In application, First screen is the Login Screen. On the successful login, I have to redirect the user to the second screen.
I am not getting how to redirect the Login Screen (view) to the Second screen (view) only on the successful login?
Which condition I should have to write for Control Flow Case?
Please help. Thanks in advance...:)
I would suggest you first run through the ADF Mobile tutorial here:
http://docs.oracle.com/cd/E18941_01/tutorials/buildmobileappscontent/adfmobiletutorial_1.html
Basically in your taskflow you give the flow a name, and then in your page's button you associate the action property with that flow name.
First go through the following tutorial.
http://docs.oracle.com/cd/E18941_01/tutorials/jdtut_11r2_57/jdtut_11r2_57.html
To redirect the Login Screen (view) to the Second screen (view) only on the successful login you have to use Router Component.
Enjoy learning.

Resources