Some time we need to write driver log to understand the issue in more deeply, for that reason we can write or store the driver log on any log file.
Step 1:
Create a driver service with log file path like below :
For Chrome
ChromeDriverService services = new ChromeDriverService.Builder().withSilent(false).withLogFile(new File("./src/test/resources/chrome.log")).build();
For Firefox
GeckoDriverService service = new GeckoDriverService.Builder().withLogFile(new File("./src/test/resources/firefox.log")).build();
Step 2:
Now pass the service parameter to WebDriver Instance.
WebDriver driver = new ChromeDriver(services);
Thanks for sharing nice information....
ReplyDeletedata science course
This is most informative and also this post most user friendly and super navigation to all posts.
ReplyDeleteWe are giving all Programming Courses such as You can
Register for a free Demo Sessions
RPA Ui Path Online Training
Best Python Online Training
Online AWS Training
Online Data Science Training
Hadoop Online Training
This is a great post I saw thanks to sharing. I really want to hope that you will continue to share great posts in the future.
ReplyDeleteartificial intelligence course in noida
ReplyDeleteIt is very ideal to see the best subtleties introduced in a simple and getting way. hrdf scheme
Thanks for the post. It was very interesting and meaningful. I really appreciate it! Keep updating stuff like this.
ReplyDeleteData Science
Python
Selenium
ETL Testing
AWS
HRDF Claimable
ReplyDeletehttps://360digitmg.com/hrdf-claimable
Such a nice blog with the reference links. Thanks for sharing with others.
ReplyDeleteSelenium Training Institute in Chennai
selenium online course
Best Selenium Training in Bangalore
Superb blog post! And this blog clearly explain about for useful information. I would Thanks for sharing this wonderful content. Its very useful to us. Keep it up!
ReplyDeletephp interview questions and answers for freshers
php programming interview questions
php interview questions and answers pdf
php and mysql interview questions
Really you have done a good job. Thanks for sharing this valuable information....
ReplyDeleteAdvantages of Cucumber Framework in BDD
Behaviour Driven Development
Wonderful Blog, thanks for sharing this blog with us, waiting for your next update.
ReplyDeletewhat is machine learning?
why is machine learning important?
Great Content. It will useful for knowledge seekers. Keep sharing your knowledge through this kind of article.
ReplyDeleteEffective Website Design
Web Design Strategy
That was perfect, valuable thoughts, thanks for sharing your knowledge
ReplyDeleteWordpress Training in Chennai
Wordpress Training Institutes in Chennai