RUVIDEO
Поделитесь видео 🙏

Selenium Composite Actions Video Tutorial

Automation engineers, Chris Lawson and Ryan Eisma, explore how to do complex user interactions utilizing Selenium. http://www.zenergytechnologies.com

“A lot of times you will have more complex user interactions than just typing a field and clicking a button.” - Chris Lawson, Automation Engineer

This video will demonstrate how to do, for instance, a drag and drop and a mouse over type event. Follow video times to match demo to summary:

To begin this Selenium test, the first thing we are going to do is instantiate a new WebDriver. (00:30) Since we are utilizing Firefox for this test we are going to instantiate the GetkoDriver and complete all of the steps that come along with instantiating that driver.

Completing Drag and Drop User Interaction:
Next, we are going to navigate to our webpage. To complete the drag and drop action you need a starting and an ending point. So, your next step should be to locate those two elements. (1:05) Selenium provides an actions class with numerous methods for where you can perform a bunch of complex user interactions. For the drag and drop, the actions that you will want to perform are:
1. Click and hold method
2. Move to element method

For both of these methods you will need to pass, for the click and hold – the starting point, and for the move to element – the ending point. (1:28) Once you get to that endpoint you will want to release that element and then call the build method. The build method is used to loop all of the sequences together. Then you can utilize the "perform" method to perform the entire action. This method is often utilized to complete Selenium composite actions for linear scripts.

Creating an Action Method:
If you wanted to pull the previous action out and create an action method you would need to pass the starting and ending element to that method as well as the Driver. Then,
1. Create a new instance of the actions class
2. Create an object of the actions class that would contain all these steps
(2:07) Last, you will want to “call” all these steps again. At this point you can call that action objects at any point and time later on in our test.

We hope this helps you complete complex user interactions using complex actions provided by Selenium. Contact us at [email protected] with any questions.

Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Selenium Composite Actions Video Tutorial», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.

Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.

Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!

Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.