
Search In
Selenium whenever launches a browser, it is not in maximize form. To maximize the window use the following code:
driver.manage().window().maximize();
Eg:
WebDriver driver = new FirefoxDriver();
driver.navigate().to("http://www.hdfcbank.com/");
dri
User can use the following code to capture screen shot using selenium Webdriver .
File Scrfile = Driver.GetScreenShot As(OutputType.File);
FileUtils.CopyFile(Scrfile,new File(“c:\\capturescreenshot.jpg”));
Here is the solution in mongodb to find out the data between two dates.
Code:
db.collection.find( "SelectedDate": {'$gte': startdate,'$lt': enddate}})
Are there any best practices to make API calls to the server as few as possible without complicating and lengthening my code? How many calls per App screen should I take as a rule of thumb?
How do I track the user activity on video portal using JSP and Servlet?
Thanks in Advance
Importing Information Into MongoDB
If you want to import information into MongoDB database, lets take an example to import the database of resturants. It's in json format and can be downloaded using wget:
wget https://raw.githubusercon
In below example I have written Python script to configure barcode. It will print one barcode on each page based on quantity available of selected products. Like below python code in .py file :
import logging
from openerp.osv import fields, orm
To generate bar code image and bar code value in OpenERP(Odoo), you have to follow 3 simple steps as given below.
Step-1 Click Bar-code Menu
As shown in below screen-shot
Step-2 Click on Barcode->Barcode ->Model ->Res Id ->Type ->
The toString() method can be used to convert an array into a string. It returs a result containing string and it will seperate the different elements in the array with commas.
var group = ['one','two','three','four'];
var conv = group.toString();
When I was new to cakephp 3.0 then I faced issue adding admin prefix. In Cakephp 2.* it was simple, just write the following lines in core.php:
Configure::write('Routing.prefixes', array('admin'));
To enable cakephp 3.0 just write the following co
