Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 23986

Questions about testing applications written in Java or test automation written in Java, a popular programming language and runtime environment which allows Java programs to run unchanged on most hardware and software platforms.

0 votes

How to write multiple test cases in property file

I do not see you loading config.property file to your Property variable. prop.load(fileInput); after Properties prop = new Properties(); should resolve your error. Also, try to keep everything i …
Mayur's user avatar
  • 144
3 votes

Is it a good practice to keep the looping statement in loginsteps class?

Since you are using TestNG, I would suggest you to go with @DataProvider. This way you can be more sure that what test data passed and what failed. If you loop inside login method, you will have only …
Mayur's user avatar
  • 144
0 votes

How to find an element that may be in multiple xpath locations?

You can use try cache block. String text = null; try{ text = driver.findElement(By.xpath(xpath1)).getText(); }catch(NoSuchElementException ex){ text = driver.findElement(By.xpath(xpath2)).getTe …
Mayur's user avatar
  • 144