Saturday, December 30, 2017

To resolve the issue in Selenium WebDriver

driver = new  PhantomJSDriver(caps);
Dimension dim= new Dimension(1440, 900);
driver.manage().window().setSize(dim);

Click here for more topics

Saturday, December 23, 2017

try{
Image image = ImageIO.read(new File("Path\\images\\system-tray-icon.png"));
frame.setIconImage(image);
            }
             catch(NullPointerException | IOException n1){
             n1.printStackTrace();
             }
Image image = ImageIO.read(new File("Path\\images\\system-tray-icon.png"));
        // create a popup menu
         PopupMenu popup = new PopupMenu();
         // create menu item for the default action
         MenuItem defaultItem = new MenuItem("Run");
         defaultItem.addActionListener(listener);
         popup.add(defaultItem);
         /// ... add other items
         // construct a TrayIcon
         TrayIcon icon = new TrayIcon(image, "Tray Demo", popup);
       
     
        icon.setImageAutoSize(true);
>

Selenium useful links

Powered by Blogger.

Featured Post

Benefits of having a user Interface for a Selenium Automation Suite/Regression Suite

Once you are able to work independently on Selenium scripting, another important task is how to ease your automation test execution. There a...

Video

Popular Posts

Our Facebook Page