Robot Framework And Appium - Automate The Login Process

Ғылым және технология

In this video we will learn how to use Robot Framework and Appium to automate a simple login process on an Android emulator. The application we are using is the same as the one in the previous video. All the needed commands are taken from AppiumLibrary. You can find the Keyword documentation here:
serhatbolsu.github.io/robotfra...
This video is part of my mobile automation series with 𝗥𝗼𝗯𝗼𝘁 𝗙𝗿𝗮𝗺𝗲𝘄𝗼𝗿𝗸 and 𝗔𝗽𝗽𝗶𝘂𝗺, so be sure to like, subscribe and hit the notification bell so you don't miss out on any video that I post.
𝗬𝗼𝘂 𝗰𝗮𝗻 𝗰𝗵𝗲𝗰𝗸 𝗼𝘂𝘁 𝘁𝗵𝗲 𝗹𝗶𝗻𝗸 𝘁𝗼 𝘁𝗵𝗲 𝗽𝗹𝗮𝘆𝗹𝗶𝘀𝘁 𝗵𝗲𝗿𝗲:
➡️ • Mobile Automation With...
My channel is dedicated to teaching Robot Framework automation to those who want to learn a simple automation framework but don't necessarily have the programming skills that other frameworks require.
You can start from scratch and learn automation at your own pace and I will be guiding you all the way. Don't hesitate to comment on my videos if you think that there are notions or keywords you don't understand.
I will gladly help and guide you.
𝗧𝗵𝗲 𝗯𝗲𝗴𝗶𝗻𝗻𝗲𝗿𝘀 𝘁𝘂𝘁𝗼𝗿𝗶𝗮𝗹 𝗶𝘀 𝗮𝘃𝗮𝗶𝗹𝗮𝗯𝗹𝗲 𝗶𝗻𝘀𝗶𝗱𝗲 𝘁𝗵𝗲 𝘀𝗽𝗲𝗰𝗶𝗳𝗶𝗰 𝗽𝗹𝗮𝘆𝗹𝗶𝘀𝘁 𝗼𝗻 𝗺𝘆 𝗰𝗵𝗮𝗻𝗻𝗲𝗹, 𝘀𝗼 𝗴𝗼 𝗮𝗵𝗲𝗮𝗱 𝗮𝗻𝗱 𝗰𝗵𝗲𝗰𝗸 𝘁𝗵𝗮𝘁 𝗼𝘂𝘁 𝗳𝗼𝗿 𝗺𝗼𝗿𝗲 𝗶𝗻𝗳𝗼𝗿𝗺𝗮𝘁𝗶𝗼𝗻:
➡️ • Complete Robot Framewo...
Send me messages about tutorials you would like to see related to Robot Framework, mobile automation or web automation and I will try to make it happen.
🔔🔔🔔𝗗𝗼𝗻'𝘁 𝗳𝗼𝗿𝗴𝗲𝘁 𝘁𝗼 𝗹𝗶𝗸𝗲, 𝘀𝘂𝗯𝘀𝗰𝗿𝗶𝗯𝗲 𝗮𝗻𝗱 𝗵𝗶𝘁 𝘁𝗵𝗮𝘁 𝗯𝗲𝗹𝗹 𝗶𝗰𝗼𝗻!🔔🔔🔔

Пікірлер: 68

  • @8P8C
    @8P8C3 жыл бұрын

    Great, I was waiting for the next video. Keep rocking :) Muchas gracias.

  • @RobotFrameworkTutorials

    @RobotFrameworkTutorials

    3 жыл бұрын

    Thanks. Will do :-)

  • @grissamanel1414
    @grissamanel14142 жыл бұрын

    Thanks for the video, it was so helpful

  • @pedrotschoke
    @pedrotschoke3 жыл бұрын

    Thanks!

  • @RobotFrameworkTutorials

    @RobotFrameworkTutorials

    3 жыл бұрын

    Welcome!

  • @wojciechaugustynowicz5560
    @wojciechaugustynowicz55603 жыл бұрын

    Good job!

  • @RobotFrameworkTutorials

    @RobotFrameworkTutorials

    3 жыл бұрын

    Thank you! Cheers!

  • @zehkar2750
    @zehkar27503 жыл бұрын

    HEY,can we start to automate even if we have nothing to develop during a sprint, can we have paralilism with dev

  • @alexandruberbier9581
    @alexandruberbier95812 жыл бұрын

    I like to do it like this: I keep the element locators in a resource file - each page is a dictionary, the keys are the locator names like email_field or password_field and the values are the locators. In the testcase you will have something like input text into ${login.email_field} - here login is the dictionary name and email_field is a key of the dictionary with the value being id=chat21.android.demo...

  • @RobotFrameworkTutorials

    @RobotFrameworkTutorials

    2 жыл бұрын

    It is a matter of personal preference. The nice thing about this framework and about automation is that you can customize it however feels better for your taste 😁

  • @sebastiannadir
    @sebastiannadir3 жыл бұрын

    I really appreciate your videos, it has been helped me a lot to develop my tasks. I have a little question, when I open an application the app get down, but when i open manually it works. There could be something related with the appActivity that I choosed to start the app?

  • @RobotFrameworkTutorials

    @RobotFrameworkTutorials

    3 жыл бұрын

    Hello. This could be because of the app activity. Try choosing another one. Also, Appium logs may give you a clue of what the problem is. Good luck

  • @sebastiannadir

    @sebastiannadir

    3 жыл бұрын

    @@RobotFrameworkTutorials Hi!!! yes, the problem was related with my appActivity. now it works! thanks a lot

  • @RobotFrameworkTutorials

    @RobotFrameworkTutorials

    3 жыл бұрын

    Great! Good luck!

  • @Piyal2020
    @Piyal20203 жыл бұрын

    Hey Man . I watched and downloaded all your videos . You are amazing . Would you be able to help with something simple ? If I just want to validate say a user is successfully logged in ... How do I do that ? I tried the Run Keyword If command

  • @RobotFrameworkTutorials

    @RobotFrameworkTutorials

    3 жыл бұрын

    Hello and thanks for the feedback. If I understand correctly, you want to verify that the user has been successfully logged in. The idea is to verify that after you click the login button and the page loads, the page contains an element that would not be displayed if the login was not successful

  • @chinna4969
    @chinna4969 Жыл бұрын

    How to find elements in webview in app like loginscreen getting error do not match with elements

  • @prathmeshnaik2588
    @prathmeshnaik25882 жыл бұрын

    My adv doesn't have chrome browser installed... Do i need to install through apk file?

  • @chinna4969
    @chinna4969 Жыл бұрын

    How to find elements in webview we are calling webview login screen with html text loginscreen getting error do not match with elements can you help with this

  • @avinashdudala9490
    @avinashdudala94902 жыл бұрын

    How to automate "Keep me signed in" functionality , so when I close app and when I relaunch app it should display only entered email previously. using robot framework ?

  • @RobotFrameworkTutorials

    @RobotFrameworkTutorials

    2 жыл бұрын

    Set noReset to true and that will keep your app from being reset.

  • @luchogz585
    @luchogz5853 жыл бұрын

    Hi, your videos are great but I have a big problem, do you know what should I do when I can't find locators or webelements using the ui automator viewer? for example I can use Input Text or Click Element in the Email field on my app because it doesn't have any locator.

  • @RobotFrameworkTutorials

    @RobotFrameworkTutorials

    3 жыл бұрын

    What does your uiautomator interface display when you inspect the UI?

  • @RobotFrameworkTutorials

    @RobotFrameworkTutorials

    3 жыл бұрын

    This has nothing to do with uiautomator. The inspection is good. The application is not well enough written and it is not automation friendly. In this case there are 2 options: you get the dev to provide you with unique identifiers for your fields or you get to finding complex locators for your fields

  • @luchogz585

    @luchogz585

    3 жыл бұрын

    @@RobotFrameworkTutorials Thank you so much

  • @RobotFrameworkTutorials

    @RobotFrameworkTutorials

    3 жыл бұрын

    This is your locator for the email field: //android.view.ViewGroup[android.widget.TextView[@text="Email"]]/android.widget.EditText[@index="1"] This is your locator for the password field: //android.view.ViewGroup[android.widget.TextView[@text="Email"]]/android.widget.EditText[@index="3"]

  • @luchogz

    @luchogz

    3 жыл бұрын

    @@RobotFrameworkTutorials hey, how you did this? I'm in the same situation, I can't find locators for fields with no info using robot framework with the appium library

  • @vinothkumar-zg2bp
    @vinothkumar-zg2bp3 жыл бұрын

    Nice

  • @RobotFrameworkTutorials

    @RobotFrameworkTutorials

    3 жыл бұрын

    Thanks

  • @vinothkumar-zg2bp
    @vinothkumar-zg2bp3 жыл бұрын

    Can you please explain us how to use python user-defined keyboard in appium testing

  • @RobotFrameworkTutorials

    @RobotFrameworkTutorials

    3 жыл бұрын

    I won't be creating user defined keywords in Python but I will use existing Keywords and create extended ones for login, create conversation, send messages, etc. That is what i am planning on doing in the next video. The keywords will be created like the ones in this video: kzread.info/dash/bejne/eWWGsqisl9rRpNY.html. Stay tuned!

  • @mohammednihad9548
    @mohammednihad9548 Жыл бұрын

    Hi nice video.. can we use this approach to automate google account login??

  • @RobotFrameworkTutorials

    @RobotFrameworkTutorials

    Жыл бұрын

    Yes, you can automate any app from your mobile phone. †he priciple rests the same. You just need to be carefull not to have 2fa or something when you connect the Google account

  • @RaselAhmed-ix5ee
    @RaselAhmed-ix5ee2 жыл бұрын

    how can click the search key of my android keyboard?

  • @RobotFrameworkTutorials

    @RobotFrameworkTutorials

    2 жыл бұрын

    You could try this keyword: serhatbolsu.github.io/robotframework-appiumlibrary/AppiumLibrary.html#Press%20Keycodeand use this as an argument: developer.android.com/reference/android/view/KeyEvent#KEYCODE_SEARCH

  • @genson3143
    @genson3143 Жыл бұрын

    How come using the ${USER1-DETAILS}[email], doesn't work sir? it says String '${USER1-DETAILS}' used with invalid index 'email'. To use '[email]' as a literal value, it needs to be escaped like '\[email]'.

  • @liviuavram1047

    @liviuavram1047

    Жыл бұрын

    Write it like this: ${User1-Details}\[email] if it's a string

  • @genson3143

    @genson3143

    Жыл бұрын

    @@liviuavram1047 Thank you

  • @alexlastname5280
    @alexlastname52802 жыл бұрын

    Input Text - doesnt work in my application when i try to input text into the search field

  • @RobotFrameworkTutorials

    @RobotFrameworkTutorials

    2 жыл бұрын

    Make sure to target the right element, that is the edit search field element. Sometimes, you require a click inside the element before you can input text so you may want to try that aswell.

  • @alexlastname5280

    @alexlastname5280

    2 жыл бұрын

    @@RobotFrameworkTutorials you are right! clicking the field prior text input solved the issue

  • @alexlastname5280

    @alexlastname5280

    2 жыл бұрын

    @@RobotFrameworkTutorials maybe you know why scrolling doesn't work for me? I have like list of products on the screen. And when I specify locators to scroll from 1st element to last visible on the screen (or even not visible) nothing happens. Tried to add these products to a list of webelements and then scroll from 1st to last. Doesn't work either. Flutter application. Being tested on Android emulator

  • @avinashdudala9490
    @avinashdudala94902 жыл бұрын

    Hi can we use selenium library and Appium library simultaneously in single test case bcoz my app was hybrid app so I need to switch to selenium somehow

  • @RobotFrameworkTutorials

    @RobotFrameworkTutorials

    2 жыл бұрын

    Yes you can. You just have to put AppiumLibrary. Or SeleniumLibrary. In front of the keywords with the same name in both so that Robot knows which one to use

  • @avinashdudala9490

    @avinashdudala9490

    2 жыл бұрын

    @@RobotFrameworkTutorials I'm getting No Keyword with name Selenium library found

  • @RobotFrameworkTutorials

    @RobotFrameworkTutorials

    2 жыл бұрын

    What I mean is to install and import both AppiumLibrary and SeleniumLibrary. Then, when you want to execute a keyword from one or the other you just place the library name in front. Example: "AppiumLibrary.Wait Until Page Contains Element" or "SeleniumLibrary.Wait Until Page Contains Element"

  • @avinashdudala9490

    @avinashdudala9490

    2 жыл бұрын

    @@RobotFrameworkTutorials correct but i need to do that for each keyword in entire file right ?

  • @RobotFrameworkTutorials

    @RobotFrameworkTutorials

    2 жыл бұрын

    Actually no. You can use this kw in the test setup: robotframework.org/robotframework/latest/libraries/BuiltIn.html#Set%20Library%20Search%20Order. And as arguments you give the two libraries. So, by default, robot will search in the first one. For the second, you will put the syntax above with the library name in front

  • @corrimaca
    @corrimaca3 жыл бұрын

    Hello there, Im tring to input text into a text field but its not working... can you help? this is the log: this xpath work just fine couse the keywork "Wait Until Page Contains Element" PASS INFO Typing text '29762801857' into text field '//android.widget.EditText[contains(@text,'Digite aqui seu CPF')],' FAIL InvalidSelectorException: Message: java.lang.IllegalArgumentException: Unable to compile '//android.widget.EditText[contains(@text,'Digite aqui seu CPF')],'. See Cause. I spent sometime yesterday searching arround and could not found a solution for that

  • @RobotFrameworkTutorials

    @RobotFrameworkTutorials

    3 жыл бұрын

    Are you using a variable for this part //android.widget.EditText ? My question is: do you have a selector like ${VARIABLE}[contains(@text,'Digite aqui seu CPF')]?

  • @RobotFrameworkTutorials

    @RobotFrameworkTutorials

    3 жыл бұрын

    If you need more help contact me on LinkedIn. i will gladly help you.

  • @constantine9953
    @constantine99533 жыл бұрын

    Hi. I need help. How can I do auto test for sign up in the app if when I enter phone number and submit, on the server/admin panel random generated sms code exactly for this user/phone number

  • @RobotFrameworkTutorials

    @RobotFrameworkTutorials

    3 жыл бұрын

    In this case what you can do is to open your app first and then use another Open Application instance to open the messages application, read the arrived sms and then get back to the original app and enter the code. That's how I would do it.

  • @constantine9953

    @constantine9953

    3 жыл бұрын

    @@RobotFrameworkTutorials Oh, Thanks, but I didn't understand anything. Okay, I'll have to learn Java

  • @RobotFrameworkTutorials

    @RobotFrameworkTutorials

    3 жыл бұрын

    @@constantine9953 So, you use the open application from AppiumLibrary to open your app. You go trough the registration process and then after submit you switch to the messaging app where you expect the code to arrive. You get the code and then you go back inside your app and enter it.

  • @constantine9953

    @constantine9953

    3 жыл бұрын

    @@RobotFrameworkTutorials It is not a messaging app, it is a just web test stage

  • @constantine9953

    @constantine9953

    3 жыл бұрын

    @@RobotFrameworkTutorials Maybe you can do a video for this playlist?

Келесі