Posts

QA Automation/SDET INTERVIEW PREPARATION QUESTIONS

  JAVA &  JAVA 8 Programming Questions SQL Questions Selenium Questions 1) Implecit wait, explicit wait and Fluent wait syntax 2) If implicit wait is 60 sec, and explicit wait for element is 30 sec, How much time browser will wait? 3) Absolute and Relevent Xpath 4) following sibling and nth child concept 5) get() and navigate() 6) How many ways we can click button in selenium 7) How many ways we can refresh browser 8) What is pagefactory 9) Common exceptions in Selenium - stale element exception 11) Maven build phases 12) WebDriver driver = new ChromeDriver() - What are the uses ? 13) WebDriver architecture 14) Handle multiple windows 15) Drag and drop code, double click, right click 16) Drop-down handling with and without select tag 17) Take screenshot 18) quit() and close() 19) how to find hidden elements 20) Send data to text field Without using sendkeys 21) Broken links 22) Read properties file in selenium 23) Handling dymanic elements 24) Dynamic web elements handling 25) Data

Api testing using GOT

  We all know that request library has been deprecated , so I was searching for a new and better API library , as part of that I found GOT Please refer to below link for the cool features of GOT https://www.npmjs.com/package/got#comparison Installation of GOT package: use: npm install got Sample Program for get call  in TypeScript: import got from 'got' ; export class A { static async f1 () { const burl = 'https://xyzabctest.com' ;     //Way 1 const res1 = Promise . resolve ( got . get ( burl ));     //Way 2 const res2 = await got . get ( burl );     //Way 3 const res4 = await got ( burl ); await console . log ( "t1------------------------------>" + res1 . then ((t)=>{ console . log (t. body )})); await console . log ( "t4------------------------------>" + res2 . body ) await console . log ( "t5------------------------------>" + res4 . body ) const res5 = res1 . then ((t)=>{ return t. body }