how can I open a new browser window without cookies ?
I mean, the window shouldn't remember the last session. If I log in to my google account and open new tabs or a new browser window, the browser will show me the same account again.
So, how can I solve this problem ? Thanks for the help
Related
My script in Robot framework use White library to find a popup window and authenticates a user by entrering his username and password, then clicking on button to connect.
The script works well when monitor screen is open but fails when monitor screen is closed (i.e. windows session locked (ctrl+alt+del)). Script must be launched automatically any time by Jenkins. For this reason no screen is needed during test execution.
I have tried with Autoit library too without success, and I also tried to send credentials in URL like this "http://user:password#myserverurl.com". Which did not work because this popup appears in middle of the scenario of another application which authentication has already been made through another login page in the beginning of scenario.
Please send me your suggestions if there is a way to simulate an opened monitor screen or another library that I can use to handle browser popup when monitor screen is close.
Thank you in advance. My code :
WhiteLib.Attach Window ${windowTitle}
WhiteLib.Press Keys ${user}
WhiteLib.Press Special Key TAB
WhiteLib.Press Keys ${password}
WhiteLib.Press Special Key TAB
WhiteLib.Press Special Key RETURN
I'm working on creating a voting site of some sorts. There will be a laptop at a physical location at my school and one of the pain points I need to solve is that since my site uses sign in with google, it becomes a hassle to sign everyone out and let the next person sign in, so I thought of opening an incognito tab to store session data when someone wants to vote, so that they just need to close the tab to clear their session data. I know that only an extension is allowed to open incognito tabs, and it would require the "tabs" permission, but how would I go about making it so that when someone clicks on the button on my site, my extension opens an incognito window for them to sign in?
let's say for instance when I click
<button id="open_Incognito">Start Session</button> it would open an incognito tab.
Please note, this question is not about client-server sessions. It's about Chrome session.
I'm reading this article about tabId and it states that:
Tab IDs are unique within a browser session.
What is browser session here? Does the session begin when I open a browser and ends when I close it? Is there a way to track tab across sessions?
What is browser session here? Does the session begin when I open a browser and ends when I close it?
That's correct. It means a tab will preserve its ID only until you close the browser.
Even if the browser is configured to reopen the previews windows on startup, they will all have a different tab ID and window ID.
Is there a way to track tab across sessions?
Yes, with the tabs permission! Mostly.
The IDs will be different but you can query all the open tabs and windows and you will receive the position of a tab in a window (e.g. first tab in window 2) together with its URL. You'd have to regularly query and save this data via chrome.storage.local.set()
You can then compare this piece of information to the data you stored before closing the browser and match them to each other. For example you receive tab on position 1, with URL xyz, in a window with 3 other tabs, you can find a tab with the same details in your storage.
The "mostly" part: If the user has 2 windows with 1 tab, both pointing to the same page, you won't be able to tell which is which.
Yesterday morning i open gmail account in Internet Exlorer second tab. I checked my mail and closed that tab (not browser).
Then at the time of evining i again open second tab of browser and enetr gmail.com, it automatically redirect me at my email account without asking login.
I shocked and i thought i should remain browser open for whole night and today open gmail in second tab , it behave similar means without login screen it redirect in my gmail account.
Then i closed that tab and open another browser session and enter gmail i again surprised that i redirect me login page. At the same time i open second tab of first browser and it automatically redirect me at mail account page.
What i councluded by this behaviour is that might be gmail server keep my browser id at their server so that whenever i eneter gmail.com on second tab of first browser, it automatically redirect me at gmail account. I don't know i am right or not?
Please clear me this concept? What happens with my session at gmail server when i closed my browser tab?
As per my opinion it should automatically logout me but why this doesn't happened?
You probably ticked the option "stay signed in" the last time you logged in. Go back to gmail, click log out, and log in again, making sure that option is not ticked. Close the tab, come back in an hour, and open gmail again. You should be at the login screen this time.
I need to open a webpage from a BlackBerry application. I don't want to use a hyperlink so that users have to navigate to the blackberry browser application.
So, I basically need a full screen where the content of that particular page can be loaded just like a browser.
Is weblinks the answer to what I need or do I need to just invoke a browser session?
Thanks!
For BlackBerry applications you can use
BrowserSession session = Browser.getDefaultSession();
session.displayPage(url);
It will automatically open the browser with the given url. It's basically invoking the browser in your application context, so pressing the back button will take the user back to your application.