Debomita Bhattacharjee has Published 867 Articles

How to trigger headless test execution in Selenium with Python?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 19-Nov-2021 10:58:05

783 Views

Selenium supports headless execution. In the Chrome browser, the headless execution can be implemented with the help of the ChromeOptions class. We have to create an object of this class and apply the add_arguments method to it. Finally, pass the parameter --headless to this method.Let us obtain the title - ... Read More

How to work with id locator in WebdriverIO?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 19-Nov-2021 10:51:12

862 Views

We can work with the id locator in WebdriverIO. Once we navigate to a webpage, we have to interact with the web elements available on the page like clicking a link/button, entering text within an edit box, and so on to complete our automation test case.For this, our first job ... Read More

How to perform drag and drop actions in WebdriverIO?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 19-Nov-2021 10:46:36

1K+ Views

WebdriverIO can perform mouse operations like drag and drop using the dragAndDrop method. With this, we execute clicking and holding events on the present object(source), then pass the object to the target element. Finally, release the mouse.Syntaxlet p = $('#loc') let t = $('#target') p.dragAndDrop(t)Here, p is the source locator ... Read More

How to implement tags in Cypress?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 19-Nov-2021 10:43:30

752 Views

We can implement tags in Cypress. Cypress has tags - .only and .skip. While the .only tag is utilized to execute the it block to which it is tagged, the .skip tag is utilized to exclude the it block to which it is tagged.ExampleImplementation with .onlydescribe('Tutorialspoint', function()    //it ... Read More

How to implement hooks in Cypress?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 19-Nov-2021 10:40:03

417 Views

We can implement hooks in Cypress. Cypress Hooks are used to carrying out certain operations prior/post every/each test. Some of the common hooks are −before – Executes once prior execution any tests within a describe block.after – Executes once post-execution all tests within a describe block.beforeEach – Executes prior execution of the ... Read More

Explain the working of Cypress.

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 19-Nov-2021 10:34:27

113 Views

The below diagram explains the working of the Cypress −Automation tools like Selenium work by running outside the browser. However, Cypress has a different architecture. It runs within the browser. Cypress is based on the server - Node.js.There is a continuous interaction of Cypress with the Node.js and they work ... Read More

How to handle frames in Puppeteer?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 19-Nov-2021 10:31:43

2K+ Views

We can handle frames in Puppeteer. The frames in an html code are represented by the frames/iframe tag. Puppeteer can handle frames by switching from the main page to the frame. To work with elements inside a frame, first, we have to identify the frame with the help of locators. ... Read More

How to handle tabs in Puppeteer?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 19-Nov-2021 10:25:04

176 Views

We can handle tabs in Puppeteer using the below methods −newPage() - We can open a new tab using this method available in the browser object.Syntaxconst p = await browser.newPage()close() - We can close the tab opened using this method.Syntaxawait p.close() close() - We can close all the tabs opened ... Read More

How to pass more than one header in a request in Rest Assured?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 19-Nov-2021 10:20:01

7K+ Views

We can pass more than one header in a request in Rest Assured. A web service can accept headers as parameters while making a service call. The headers are represented in a key-value pair.There is more than one way of passing multiple headers in Rest Assured −Passing them in a ... Read More

How to manage cookies in WebdriverIO?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 19-Nov-2021 10:14:17

1K+ Views

We can manage cookies in WebdriverIO. A cookie helps to identify a user. It is an efficient technique to pass information from one site session to another or in between sessions of two connected websites.We can add, delete and obtain a cookie with WebdriverIO using the methods −browser.setCookies - this ... Read More

Previous 1 ... 5 6 7 8 9 ... 87 Next
Advertisements