Add office photos
Engaged Employer

GlobalLogic

3.7
based on 4.2k Reviews
Filter interviews by

10+ Shaans Cargo Interview Questions and Answers

Updated 6 Feb 2024
Popular Designations

Q1. selenium: what are selenium components, what are the different locators in selenium, what is selenium web driver, write a xpath for a given element on a web page

Ans.

Selenium components include Selenium IDE, Selenium RC, Selenium WebDriver. Different locators are ID, Name, Class Name, Tag Name, Link Text, Partial Link Text, CSS Selector and XPath. Selenium WebDriver is a tool used to automate web application testing. XPath is a language used to navigate through XML documents and web pages.

  • Selenium components: Selenium IDE, Selenium RC, Selenium WebDriver

  • Different locators: ID, Name, Class Name, Tag Name, Link Text, Partial Link Text, CSS ...read more

View 4 more answers

Q2. How do you convert json object to string and vice versa?

Ans.

To convert JSON object to string, use JSON.stringify(). To convert string to JSON object, use JSON.parse().

  • JSON.stringify() method converts a JavaScript object or value to a JSON string.

  • JSON.parse() method parses a JSON string and returns a JavaScript object.

  • Example: var obj = {name: 'John', age: 30}; var jsonString = JSON.stringify(obj); var jsonObj = JSON.parse(jsonString);

  • Make sure the JSON string is valid, else it will throw an error.

Add your answer

Q3. Robot Framework : what are standard libraries in Robot Framework? Explain robot framework architechture, what is setup and teardown, write a sample login script using robot framework?

Ans.

Answering questions related to Robot Framework and its standard libraries, architecture, setup and teardown, and a sample login script.

  • Standard libraries in Robot Framework include BuiltIn, Collections, DateTime, Dialogs, OperatingSystem, Process, Screenshot, String, Telnet, and XML.

  • Robot Framework architecture consists of test cases, test suites, and keywords.

  • Setup and teardown are pre and post conditions for test cases.

  • Sample login script using Robot Framework:

  • Open Browser ...read more

View 1 answer

Q4. Write a program to find the elements of a list that have least difference in python? input = [3,9,50,15,99,7,98,65] output = [98,99]

Ans.

Program to find elements of a list with least difference in Python

  • Sort the list

  • Find the minimum difference between adjacent elements

  • Return the elements with minimum difference

Add your answer
Discover Shaans Cargo interview dos and don'ts from real experiences

Q5. what are the locators in selenium? what is the difference between driver.quit and drive.close? What is implicit wait and explicit wait ?

Ans.

Answers to common Selenium interview questions.

  • Locators in Selenium are used to identify web elements on a web page. Examples include ID, class name, name, tag name, link text, and partial link text.

  • driver.quit() closes the entire browser window and ends the WebDriver session, while driver.close() only closes the current window or tab.

  • Implicit wait is a global wait that applies to all web elements and waits for a specified amount of time before throwing an exception if the el...read more

Add your answer

Q6. What are lists and its functions?

Ans.

Lists are a collection of ordered and changeable elements. They have various functions to manipulate the data.

  • Lists are created using square brackets []

  • They can contain any data type such as strings, integers, or even other lists

  • Functions include append(), insert(), remove(), pop(), sort(), and reverse()

  • Example: my_list = ['apple', 'banana', 'cherry']

  • Example: my_list.append('orange') adds 'orange' to the end of the list

Add your answer
Are these interview questions helpful?

Q7. what is cypress ,difference between cypress and selenium

Ans.

Cypress is a JavaScript-based end-to-end testing framework. It differs from Selenium in terms of architecture, ease of use, and speed.

  • Cypress is a JavaScript-based testing framework for web applications.

  • It provides a simple and intuitive API for writing tests.

  • Cypress runs directly in the browser and can access everything on the page.

  • Unlike Selenium, Cypress does not use WebDriver and has a different architecture.

  • Cypress offers automatic waiting for elements and actions, makin...read more

Add your answer

Q8. cypress folder structure and and its assertions

Ans.

Cypress folder structure and its assertions

  • Cypress follows a specific folder structure for organizing test files

  • The 'fixtures' folder contains static data used in tests

  • The 'integration' folder contains the actual test files

  • The 'plugins' folder contains custom plugins and tasks

  • The 'support' folder contains reusable functions and commands

  • Cypress provides various assertions for validating test results

  • Common assertions include 'should', 'expect', and 'assert'

  • Assertions can be use...read more

Add your answer
Share interview questions and help millions of jobseekers 🌟

Q9. what is assertions

Ans.

Assertions are statements that verify the expected behavior of a software application during testing.

  • Assertions are used to validate whether a certain condition is true or false.

  • They help in identifying bugs and ensuring the correctness of the software.

  • Assertions can be used to check the values of variables, compare expected and actual results, or verify the presence of certain elements.

  • Examples of assertions include assertEqual, assertTrue, assertFalse, assertNull, assertNot...read more

Add your answer

Q10. Api testing using cypress

Ans.

Cypress is a powerful tool for API testing, allowing for easy automation and assertion of API endpoints.

  • Cypress provides a simple and intuitive syntax for writing API tests

  • It supports making HTTP requests and asserting responses

  • Cypress allows for easy mocking and stubbing of API calls

  • It provides detailed logs and error messages for debugging

  • Cypress integrates well with other testing frameworks and tools

Add your answer

Q11. architecture about cypress

Ans.

Cypress is a JavaScript-based end-to-end testing framework that runs directly in the browser.

  • Cypress allows for easy and fast testing of web applications.

  • It provides a rich set of APIs for interacting with elements and making assertions.

  • Cypress runs directly in the browser, eliminating the need for Selenium or other external drivers.

  • It supports modern JavaScript frameworks like React, Angular, and Vue.

  • Cypress provides real-time reloading and automatic waiting for elements to ...read more

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Qa Automation Testing Engineer Interview Questions from Similar Companies

View all
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
70 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter