Monthly Archives: December 2016

Simple class in Python

”’ Created on Dec 30, 2016 @author: asharda ”’ class Class: studentcount=0 def __init__(self,name,salary): self.name=name self.salary=salary Class.studentcount+=1 def displayCount(self): print(“Count seen is “,self.studentcount) c1=Class(“Ashish”,100000) c2=Class(“Ajay”,2000) c2.displayCount()

Posted in Design Pattern, Python, Uncategorized | Leave a comment

No Staged files Error in Eclipse

Right click the file and select Team->Add to Index. and then later Right click->Commit with the commit message

Posted in Uncategorized | Leave a comment

Java Missing required source folder: ‘src->main->resources’–>Eclipse

Right-Click Project –> Build Path –> Configure Build Path under Source ; unselect the SRC, save, select again.

Posted in Uncategorized | Leave a comment

Getaround FF50 and webdriver 3.0.1

Lot of issues related to Action classes and click on Element can be seen with FF50. Downgrade FF to FF47 and do the below changes in pom.xml <dependency> <groupId>org.seleniumhq.selenium</groupId> <artifactId>selenium-java</artifactId> <version>2.53.1</version> </dependency> <dependency> <groupId>org.seleniumhq.selenium</groupId> <artifactId>selenium-firefox-driver</artifactId> <version>2.53.1</version> </dependency>

Posted in Uncategorized | Leave a comment

Selenium IDE-Formats do not show up?

Go to Options->Select Experimental features in IDE and now go back to Format. You should be able to see all formats back again.

Posted in Uncategorized | Leave a comment

Chain the elements Webdriver Java

Example Scenario: new LoginPage(driver).clickSignIn().signInwithPersonalLoan(); //Multiple things on same line.   In the POM return instance of the class. eg: /** * Click Sign In * @return */ public LoginPage clickSignIn() { signIn.click();//This is just the webelement on the page. return … Continue reading

Posted in Uncategorized | Leave a comment

Start Mongo from command Line

mongod –port 27017 –dbpath C:\MongoDB\data\db

Posted in Uncategorized | Leave a comment