my question is regarding Xpath ... as u said in drop down session like By.id() in main()... but wen v separately save xpaths in .propertiesfile and wen v want to automate that through keywords.java class den how to use it ... public void choose(String objectname, String data) { Select select = new Select(driver.findElement(By.xpath(prop.getProperty(objectname)))); select.selectByVisibleText("working"); // ??? } leadstatus= //*[@id='23:3372;a']/div/a dis is how i saved in objectrepository.propertiesfile
We can write it but we can not execute is because jvm always look for the main method in the program if it is available then execution will start over otherwise not
hi @Damini Jurel , When we overload main method in Java. But the program doesn't execute the overloaded main method when you run your program, you have to call the overloaded main method from the actual main method. That means main method acts as an entry point for the java interpreter to start the execute of the application. where as a loaded main need to be called from main.
you are born as teacher Naveen ,can not be more clear and to the point!thank you so much!
Naveen is a special person for all Automation engineers. No one can explain any topic like him.. Keep growing and helping all :)
Thanks brother 🙏☺️ keep motivating like this.
naveen you are doing an awesome job, it is really helpful to me and many like me. Can you post a video of collections concept?
Very Clear concise but at same time detailed video.
Thanks Naveen Sir !
Thanks so much Naveen for this.
great naveen...can u please post one multithreading video aswell
Thank you so much Naveen. Very much useful
thank you ..you helped me a lot
Easy explanation. thanks
my question is regarding Xpath ... as u said in drop down session like By.id() in main()... but wen v separately save xpaths in .propertiesfile and wen v want to automate that through keywords.java class den how to use it ...
public void choose(String objectname, String data)
{
Select select = new Select(driver.findElement(By.xpath(prop.getProperty(objectname))));
select.selectByVisibleText("working"); // ???
}
leadstatus= //*[@id='23:3372;a']/div/a dis is how i saved in objectrepository.propertiesfile
Thanks Naveen..it was informative.!
thank you sir.. nice video..
Which S/w or IDE are you using?
Why we use string array in main method? Why not int or any other type of arrays?
Can we automate angular js based web apps using selenium?
@naveen can you please write a program to segregate positive and negative numbers in array
can we call the main() method of same class again and again like loop?
Hi... Can you let me know about mobile automation testing online course.
Hi Naveen,
Can we write Java program without main() method?
Yes we can, Eclipse doesnt throw any error. But we cannot execute the program.
We can write it but we can not execute is because jvm always look for the main method in the program if it is available then execution will start over otherwise not
Sir, do WebDriver Interface have any super Interface which is implemented by WebDriver???
yes SearchContext
Can we override the same main method?
Can we have two methods with same name, same arguments but different return types ?
yes we can have it.
Naveen AutomationLabs Thanks Naveen for such quick response .
You are doing a great job
Hi Naveen, Can you please share sample programs.
Yes in methord ovrerridding as a covarient return typee
great
what if class A extends class B, will main method get overridden? if not, how come?
Can we override?
typically it is considered as a normal method
m not getting one thing...if jvm does not consider remaining three methods as main then how is it possible to call them without class?
hi @Damini Jurel , When we overload main method in Java. But the program doesn't execute the overloaded main method when you run your program, you have to call the overloaded main method from the actual main method.
That means main method acts as an entry point for the java interpreter to start the execute of the application. where as a loaded main need to be called from main.
Stack Overflow best Exp.
how to acess course ful
Easy explanation. thanks