Pauvam.com (Heil open source)

Selenium suppress authentication popups

On November 11, 2010, in linux, by mahesh
0


Some web page requires authentication, they pop up a authentication window. During automation this pop up is a big problem, they can be avoided in firefox in just 3 steps.

Step 1: (Login to the site)

From Selenium or any automation script, call the site like http://username:password@site.com

eg., in selenium

selenium.open(“http://username:password@site.com");

Step 2: (Suppress the popup in firefox profile)

The above method will pop up an other ok button, to suppress that from firefox on your default profile open about:config and right click->New->Integer  use the preferred name as network.http.phishy-userpass-lengthnew and value as 255.

Step 3: (Use the firefox profile in Selenium)

java -jar selenium-server.jar -interactive -firefoxProfileTemplate “%USERPROFILE%\Application Data\Mozilla\Firefox\Profiles\k2h1lu68.default”

The file “k2h1lu68.default” could vary in your case.

Share
 

Introduction to Memory Leak & Valgrind

On July 12, 2010, in Uncategorized, by admin
2


valggrind
Memory Leak :
A memory leak or leakage in “C Programming” is nothing but a programrammer has dynamically allocated a memory for its use and during the exit of the program, programmer unable/failed to release memory he has acquired.
Is this a hazard ?
(more…)

Share
Tagged with:
 



Links in Linux are like shortcuts created in windows (.lnk files). In Linux there are two types of links that can be created, they are hard and soft links.

Before getting closer to links, a understanding of how files are stored in Linux is good,

inode – All files and directories in Linux are stores with a unique number called inode, this inode is also a data structure that holds the attributes of the file/directory

Hard Link

The created link takes the inode of the original file

Advantages

  • Any change (attribute) done to the original copy will reflect in the link.
  • Link will still point to the file, if the source file is deleted.

Limitations

  • Cannot go beyond file systems boundaries.
  • Cannot link directories (This limitation is to prevent endless recursive loop)

(more…)

Share