Selenium how to handle SAP loading icon - selenium-webdriver

I am automating one SAP web based application and when i am clicking on button, it is not loading whole web page but displaying loading icon.
i inserted explicit wait but i want a more tuned solution for this.i have also attached image for further reference.
please tell me how can i handle this loading icon.

Related

CefSharp - How to get feedback if clicked an inputfield?

I'm new to CefSharp. Right now on one side I'm using cefsharp on my server to get an image/screenshot of my off-screen-browser. On the other side I have the client that is requesting and interacting with this image.
So clicking on the image, getting the coordinates and transfer that information to cefsharp to perform the same interaction, works well. But now I'm sitting in front of an login-screen and want to click the inputfield.
So clicking works, but now I want to spawn a keyboard, so I can type sth into the inputfield. How can I get feedback that I clicked into an inputfield?
My project is setup in Unity, C#.

How to get the full screen mode of a web page

I am developing react web page. and what I'm wanting to do is,
when a button pressed I want my web page to view on full-screen mode. How can I implement that
Is there a way to do this without using any external packages

Opening a pop up from angularjs partial page

I have an AngualarJS app that has an index page and some partial pages, displayed in ui-view. The app is using ui-routing. I have a button on the header (located on the index page) and on click of that button I want a small pop up open - a page displaying some data from the database, based on currently logged in user. I am trying to decide between opening a windows with window.open and sizing it to about 400x400 but that seems very un-elegant plus I see some issues with opening it. Another option I am entertaining is bootstrap ui modal but that would involve including bootstrap in my project on top of all the angular and routing includes.
Not sure if there is a better way to go, would appreciate any leads.
If you don't want to include bootstrap in your project You may use this one
--> http://www.dwmkerr.com/the-only-angularjs-modal-service-youll-ever-need/

Best practice to handle extjs refresh page

I wrote an ExtJS application like this:
the sub menu is dynamic added by clicking the button on the left.
The question is :
as the sub panel is created dynamically, so if I refresh the whole page, the panel will go away.
What I expected is it could still display the same content before refresh pages.
So, my question is how to handle this in ExtJS?
Do I need to record the current panel information into Ext.App?
ExtJS is a framework to build Web Applications that run inside the browser.
With Web Applications, just like normal applications, you don't close the program and start it anew (like a browser refresh does) just because someone wants to switch to a different toolbar or look at different data. You work with multiple panels, switch between them, and/or open windows.
You could for instance generate multiple panels inside a container with card layout, and bring to front the panel that you want to show right now.
If you have a license that allows you to use Sencha Architect, there is a nice "navigation" sample available in Architect from where you can start and look at how it's done.

How to get codenameone web browser component input controls references?

Does anybody know how can we get the form controls references in a web page that loaded in the CodeNameOne Web browser component?
I want to load a web page in CodeNameOne web browser component, then read or change the value of form input controls (For example TextBoxes) in the java code after pressing the submit button.
Regards,
Kasra
Its not an ideal way to work and would reduce the portability of your application. You can look at the JSObject class that represents a bridge between the JavaScript and Java sides.

Resources