Robot Framework Beginner Tutorial 4 - How to use VARIABLES

Поделиться
HTML-код
  • Опубликовано: 11 сен 2024

Комментарии • 140

  • @paperguns115
    @paperguns115 5 лет назад +1

    This is an excellent tutorial on variables! Really liking this series.

    • @RaghavPal
      @RaghavPal  5 лет назад

      Happy to know this Brian

  • @nittayaarunothong6780
    @nittayaarunothong6780 6 лет назад

    You are a good teacher, the content is easy to understand and clear. TY :)

    • @RaghavPal
      @RaghavPal  6 лет назад

      Thanks for the message Nittaya

  • @kirankumar-ki3ci
    @kirankumar-ki3ci 6 лет назад +4

    Wonderful but using editor is good for understanding purpose

  • @charu1611
    @charu1611 Год назад

    Thank you for this series

    • @RaghavPal
      @RaghavPal  Год назад +1

      You are most welcome Charushila

  • @niloufarjavaheri9272
    @niloufarjavaheri9272 2 года назад

    you are the best, thanks

    • @RaghavPal
      @RaghavPal  2 года назад

      You're welcome Niloufar

  • @84wister
    @84wister 4 года назад

    You're a good teacher thanks for sharing your knowledge, much appreciated

  • @krishnareddy4895
    @krishnareddy4895 6 лет назад

    simply great man the way u explained and it makes us easy to understand

    • @RaghavPal
      @RaghavPal  6 лет назад

      Glad to know this Krishna

  • @oleggorelikov1648
    @oleggorelikov1648 6 лет назад

    Thanks for tutorial!
    I'm waiting for the next part!
    I would like to see how we can organize all automations procces with the Robot Framework

    • @RaghavPal
      @RaghavPal  6 лет назад +1

      Hi , next part coming soon.

  • @praveenmaurya453
    @praveenmaurya453 4 года назад +1

    Hi @Raghav , the tutorial is amazing , I am using automation for writing test cases , only one thing i need to know , "Will this take the screenshots also while performing the steps ?" If yes please let us know from where we can see those.
    Thanks
    Praveen

    • @RaghavPal
      @RaghavPal  4 года назад

      Hi Praveen, yes you can take screenshots. This will help - stackoverflow.com/questions/33236414/taking-screenshots-on-failure-using-robot-framework
      robotframework.org/robotframework/latest/libraries/Screenshot.html

    • @praveenmaurya453
      @praveenmaurya453 4 года назад +1

      @@RaghavPal -- Thanks :)

  • @NCOverion
    @NCOverion 4 года назад

    i love your tutorials, very precise. Would be good if you also show in the test edit the representation of a dictionnary

    • @RaghavPal
      @RaghavPal  4 года назад

      Thanks Mykola, will try to add more

  • @kishorekish2217
    @kishorekish2217 6 лет назад

    Please upload a lengthy session. You teach amazing, I would refer all my friends to watch your videos.

    • @RaghavPal
      @RaghavPal  6 лет назад

      I will do Kishore, thanks for watching

    • @kishorekish2217
      @kishorekish2217 6 лет назад

      Automation Step-by-Step - Raghav Pal I will be very much glad if you can teach us advanced concept to build framework using this Ride IDE. Please do very long video, we are happy to watch for hours together! ☺️

    • @RaghavPal
      @RaghavPal  6 лет назад

      Thanks for your message Kishore. A lot of viewers have send me messages saying that they like short and crisp videos related to a single topic. I will do a mix of both in future.

    • @kishorekish2217
      @kishorekish2217 6 лет назад +1

      Automation Step-by-Step - Raghav Pal thank you for your quick response! ☺️

  • @nguyenphamhuutai6430
    @nguyenphamhuutai6430 3 года назад

    Thank you so much for this lesson ♥️

    • @RaghavPal
      @RaghavPal  3 года назад +1

      You're so welcome!

  • @chriscameron5873
    @chriscameron5873 Месяц назад +1

    Hi, I am following your tutorials for Robot Framework, a few things have changed, but I am having trouble identifying the elements from your OrangeHRM login. When I inspect the element, the username does not have an ID? It has a placeholder or 'name' but those do not appear to work, any pointers appreciated. Sorry, completely new to this, so no doubt this might be obvious to some. Thanks.

    • @RaghavPal
      @RaghavPal  Месяц назад +1

      Chris
      If ID property is not available, you can use others like name, class etc or create an xpath
      opensource-demo.orangehrmlive.com/web/index.php/auth/login

    • @chriscameron5873
      @chriscameron5873 Месяц назад

      @@RaghavPal Many thanks, I have "Assign ID to element" and then created a temp ID for that button. Would that be sufficient, or should I have just used xpath?

    • @RaghavPal
      @RaghavPal  Месяц назад +1

      yeah, if thats working, should be fine for the demo

    • @chriscameron5873
      @chriscameron5873 Месяц назад

      @@RaghavPal It is working, but on another website, as I cannot seem to get it to work on yours. Many thanks.

  • @monalisonawane1072
    @monalisonawane1072 4 года назад +1

    Hello Raghav Sir,
    I'm testing a website in robot framework with selenium library in Ubuntu.
    I have passed the test for login but after login there's a form to fill to add a certain user.
    Im not getting on how to fill that form?
    Need your assistance for this.
    I have seen your RUclips videos but couldn't find the solution.

    • @RaghavPal
      @RaghavPal  4 года назад

      Hi Monali, what exactly is the issue, do you have detailed logs. Can also try online help

  • @sauravmahata2401
    @sauravmahata2401 6 лет назад

    amazing raghav. you are really great.

    • @RaghavPal
      @RaghavPal  6 лет назад

      Thanks for your message Saurav, humbled.

  • @mitheshpagar5840
    @mitheshpagar5840 Год назад +1

    Im getting an error called
    AttributeError: 'WebDriver' object has no attribute 'find_elements_by_id'
    Im using Python 3.7.13
    Robot Framework 3.2.2
    Could you please help with this?

    • @RaghavPal
      @RaghavPal  Год назад

      Hi Mithesh
      The error you're encountering, 'WebDriver' object has no attribute 'find_elements_by_id', suggests that the find_elements_by_id method is not available in the WebDriver object you're using.
      In Robot Framework, the standard library SeleniumLibrary provides the Open Browser keyword, which initializes a browser instance and returns a WebDriver object. By default, this library uses the Selenium Python bindings.
      However, the error you're facing may indicate that you're trying to use the method find_elements_by_id directly on the WebDriver object instead of using it on the specific web element.
      To locate elements by ID using SeleniumLibrary in Robot Framework, you should first use the Find Element or Find Elements keyword to locate the desired element and then perform the desired action on that element.
      Here's an example:
      *** Settings ***
      Library SeleniumLibrary
      *** Test Cases ***
      Example Test
      Open Browser www.example.com chrome
      ${element} Find Element id=myElementId
      Log ${element.text}
      Close Browser
      In this example, Find Element is used to locate the element with the ID "myElementId" and store it in the ${element} variable. Then, the Log keyword is used to log the text of the element.
      Make sure you are using the correct syntax and following the appropriate steps when using the find_elements_by_id method in your test cases.

  • @pro_fit_india
    @pro_fit_india 6 лет назад

    Thank you Raghav for posting these videos...
    can we have more video on using object repository ,Test data in robot Framework and handling unwanted web pop ups

    • @RaghavPal
      @RaghavPal  6 лет назад

      Hi Pravin, i will cover them in coming sessions.

  • @apratimchaudhuri3790
    @apratimchaudhuri3790 5 лет назад

    Hi Raghav
    Great lesson to learn.i have one question.
    If I need to repeat the login with more than 1 set of user ID and pwd, then what needs to be done.I mean like following
    1: login with a set of credentials
    2: logout
    3: Then again login with another set of credentials and so on.
    Another question,Is it possible to get the list of credentials from an external csv file like we did in Python shell?If yes then how? Please help,I am very new to robot framework

    • @RaghavPal
      @RaghavPal  5 лет назад

      Hi Apratim, you can do data driven testing. This will help
      canadait.ca/data-driven-tests-with-robot-framework/
      thinkpalm.com/blogs/data-driven-testing-robot-framework/
      groups.google.com/forum/#!topic/robotframework-users/nTa0NwxgRoQ
      sqa.stackexchange.com/questions/30410/issue-with-data-driven-testing-in-robot-framework

  • @tapas511
    @tapas511 6 лет назад

    Excellent class!!

    • @RaghavPal
      @RaghavPal  6 лет назад

      Thanks for watching Tapas

  • @sudac72
    @sudac72 6 лет назад

    Thanks for video, waiting for the next video

    • @RaghavPal
      @RaghavPal  6 лет назад

      Thanks for watching, coming soon.

  • @nikitharamamurthy7404
    @nikitharamamurthy7404 5 лет назад +1

    hi Raghav,
    I tried automate sigin in on linked in, but its not working.
    The sigin button does not have an ID/ locator. Please check and help me

    • @RaghavPal
      @RaghavPal  5 лет назад +1

      Hi Nikitha, you will need to check and create a unique locator. You can recode to see the recorded locators. This will help - ruclips.net/video/KBI1NZAICK4/видео.html
      ruclips.net/video/W9_q7tZon2M/видео.html

  • @mahendrav2719
    @mahendrav2719 4 года назад +1

    Hi , I need to access a variable ${token} from one keyword to another keyword. Can give the suggestion how to access

    • @RaghavPal
      @RaghavPal  4 года назад

      Hi Mahendra, you can make the variable global and then refer it in the test case where needed. Check this - stackoverflow.com/questions/34880442/pass-variables-from-one-test-case-to-another-in-robot-framework-global-variable

  • @anupamam1643
    @anupamam1643 4 года назад

    Thank u Sir for the tutorial.Awesome explanation.Can you please do same tutorial in linux?

  • @ZEROSK8TER27
    @ZEROSK8TER27 6 лет назад

    So useful thanks!

  • @tanusriprasad7440
    @tanusriprasad7440 2 года назад

    Hi Raghav, I am unable to access your demo app, it showing 'Invalid credentials' could you please help.

    • @RaghavPal
      @RaghavPal  2 года назад

      Hi Tanusri, can use any other app like katalon-demo-cura.herokuapp.com/

  • @kingkongHPh
    @kingkongHPh 6 лет назад

    Thank you for sharing!

  • @Hoanghang123
    @Hoanghang123 5 лет назад

    Thank you very much for your sharing

  • @OurTravelgram
    @OurTravelgram 4 года назад +1

    Hey, I tried input password tag for tc, getting "ElementNotInteractableException: Message: element not interactable"
    could you please help, what might be the reason ?

    • @RaghavPal
      @RaghavPal  4 года назад

      Hi Sonali, most probably the element was not available in the DOM of the page by the time automation scripts initiated some action on it. You can add some wait before the step and try

  • @adamkeren66
    @adamkeren66 6 лет назад

    Hi Raghav , i am new to Robot Framework and your videos are so helpfull so thanx! i tried to find example of how to "wait until element is visible" with xpath in terms of synthx. can you try to help me with it?

    • @RaghavPal
      @RaghavPal  6 лет назад

      Hi Adam, the best way is
      1. Goto robotframework.org/
      2. Goto Libraries
      3. Goto the library you are using (e.g SeleniumLibrary)
      4. Goto the keyword documentation (e.g. robotframework.org/SeleniumLibrary/SeleniumLibrary.html)

  • @monalisonawane1072
    @monalisonawane1072 4 года назад +1

    I run pybot filename.txt command but it's showing command not found error. How to resolve it? Why this error is coming?

    • @RaghavPal
      @RaghavPal  4 года назад +1

      Hi Monali, pls check if you have set the following in the environment variable PATH
      C:\Python27\Lib\site-packages
      obot;
      C:\Python27;
      C:\Python27\bin;
      Let me know if this does not help

    • @monalisonawane1072
      @monalisonawane1072 4 года назад

      @@RaghavPal hello Sir,
      Thank you very much for the reply ..sorry I forgot to mention that I'm working in Ubuntu. Could you please reply me for the same?

    • @monalisonawane1072
      @monalisonawane1072 4 года назад

      Hello sir, I searched for this issue and found out that my Robot framework Version in Above 3.0. In which pybot is replaced with robot or Rebot. I think because of this I was getting that error.

    • @RaghavPal
      @RaghavPal  4 года назад +1

      Great, hope you can continue now

  • @motivationmeditation7370
    @motivationmeditation7370 3 года назад

    Value of variable '@{CREDENTIALS}[0]' is not list or list-like. I followed you so meticulously but I got this ERROR for both list and dictionary. Do you have any solution for this Sir?

    • @RaghavPal
      @RaghavPal  3 года назад

      Hi, not sure, if you did something differently, can also check about list and dictionary online

  • @MuhammadUmer-vs5yd
    @MuhammadUmer-vs5yd 5 лет назад

    Hi Raghav,
    I am using the Click Button function but when i run the testcases it is failed on this step by saying that Button with locator 'id = btnSubmit' not found. could you please help me out?
    Thanks

    • @RaghavPal
      @RaghavPal  5 лет назад

      Hi Umer, pls inspect the object (button) and see if you can use any other locator. You can also use katalon recorder (chrome plugin) to record your test and then export in robot framework and check. ruclips.net/video/KBI1NZAICK4/видео.html

  • @thizirikabyle528
    @thizirikabyle528 6 лет назад

    Hi Raghav, thanks for all your efforts, can you make videos about HP UFT ? Also can you also show us how to creat a new keyword with python?.

    • @RaghavPal
      @RaghavPal  6 лет назад +1

      Hi, thanks for your message, Not sure what name should I address you with. I will take up HP UFT in some time and keyword video too.

    • @thizirikabyle528
      @thizirikabyle528 6 лет назад

      Automation Step by Step - Raghav Pal My name is zouina from Montréal

    • @RaghavPal
      @RaghavPal  6 лет назад

      Thanks for the message Zouina.

  • @RubberDucki_
    @RubberDucki_ 5 лет назад

    Hi excellent tutorial, Is there a chance to give variables dynamic values?

    • @RaghavPal
      @RaghavPal  5 лет назад

      You can, actually, you can use scripts for this

  • @siddharthkatariya7674
    @siddharthkatariya7674 6 лет назад

    hi raghav could you publish some videos related to protocol testing test cases so that it will be useful to understand more .

    • @RaghavPal
      @RaghavPal  6 лет назад

      I will try to do that Siddharth

  • @srpgmail
    @srpgmail 6 лет назад

    Hi Raghav, I am getting error [ ERROR ] Error in file 'C:\path\TestSuite1.txt': Setting variable '&{LOGIN}' failed: Dictionary item '' does not contain '=' separator.
    I have followed the same steps you have followed, any idea what mistake i have done?

    • @RaghavPal
      @RaghavPal  6 лет назад

      Looks like some issue with your dictionary variables. If you remove it, does it work fine. May be you can try again

  • @duytan9409
    @duytan9409 6 лет назад +1

    Hi Bro,
    How can I setup on "Text Editor" of RIDE display the text like your screen (time = 10:35) ?
    On my screen, the text on "Text Editor" is displayed very simple as "black text", nothing any format like your screen.
    Pls support me about this case.
    Thanks so much

    • @RaghavPal
      @RaghavPal  6 лет назад

      Hi Duy,
      I did not use any text formatting, its due the library and python
      Just check the required libraries (Selenium) is installed and added properly.
      You can goto command line and check
      pip show selenium
      pip check selenium
      And also check if its added in Robot Framework

    • @gyozonagy2444
      @gyozonagy2444 5 лет назад +1

      Hi,
      "pip install pygments" in console and restart ride

  • @SRIRAMVOOTUKURU
    @SRIRAMVOOTUKURU 5 лет назад

    when I click on "Testcase" Settings Table, I am not able to get Keywords using Ctrl+Space,example "Open Browser" .I am not able to get.Please suggest me how to resolve

    • @RaghavPal
      @RaghavPal  5 лет назад

      Hi Sriram, try to restart RIDE

  • @khaledreza1
    @khaledreza1 3 года назад

    How do I use an extracted value of a variable from one execution to another execution in the same script? Some how, when I pass the variable to the second execution, the value does not seem to pass. It is empty. Please let me know if anyone knows how to do that.

    • @RaghavPal
      @RaghavPal  3 года назад

      Hi Khaled, you will need to store the value in a variable and then use it later, Pls try

  • @muhammadkumail4923
    @muhammadkumail4923 5 лет назад

    There are 2 dropdown I want to select value from one dropdown and validate value from second dropdown since there are multiple value in both dropdown so I have to repeat it multiple times I'm trying to do it with single loop but it's not possible. Can you please tell me how can I achieve this?

    • @RaghavPal
      @RaghavPal  5 лет назад

      Hi Md. Kumail, to get all elements from a dropdown check this - stackoverflow.com/questions/16768318/how-can-i-get-all-elements-from-drop-down-list
      You can do same for both dropdowns, so you have 2 lists. Now you can compare them

  • @saumyagupta4999
    @saumyagupta4999 5 лет назад

    hi, can you please provide some insights on automating SAP applications using RIDE.Much needed !

    • @RaghavPal
      @RaghavPal  5 лет назад

      Hi Saumya, I will check on this, but can take some time.

  • @madhusudandevaraju1207
    @madhusudandevaraju1207 5 лет назад

    Hi Raghav, I couldn't see the dictionary variable option when I do the right click on the suite. Please help.

    • @RaghavPal
      @RaghavPal  5 лет назад

      It should be. Pls check if you missed any step. Also restart RIDE

    • @madhusudandevaraju1207
      @madhusudandevaraju1207 5 лет назад

      I updated my RIDE to version 1.5.2.1. This resolved the issue. Thanks.

  • @pedja2518
    @pedja2518 5 лет назад

    Hi, thank you for your videos. They are excelent!
    I have issue with keyword "Read excel column"
    Can you give me advice what argunents to use? thank You.

    • @RaghavPal
      @RaghavPal  5 лет назад

      Hi Pedja, what library are you using for excel. What is the exact issue.

    • @pedja2518
      @pedja2518 5 лет назад

      @@RaghavPal Thank You Raghav, in the meantime, I have solved issue with that. It something with library instalation, i think.
      Now, I am trying to make loop, which will read columne values, row by row, that is real challenge. 😊

    • @pedja2518
      @pedja2518 5 лет назад

      @@RaghavPal You want beleive, I made it with loop.
      Thank You 😉

    • @RaghavPal
      @RaghavPal  5 лет назад

      Glad to know this. All the best.

  • @prachi517
    @prachi517 4 года назад

    Plz share more examples for scalar list dix env

    • @RaghavPal
      @RaghavPal  4 года назад

      I will try to do more sessions on this Prachi

  • @sujitkumarpaul8511
    @sujitkumarpaul8511 6 лет назад

    On RIDE editor there are 2-3 test suites.Each test suite open same url after opening browser.I want to use global variable (base url )for those test suite on the top test suite for each.Could you please help me.

    • @RaghavPal
      @RaghavPal  6 лет назад

      Hi Sujit, you can set global variable and also set setup step for the test suites, watch the next sessions, should be able to get that.

  • @varuncs7753
    @varuncs7753 6 лет назад

    Could you please guide us how to do data driven testing in robot framework

    • @RaghavPal
      @RaghavPal  6 лет назад +1

      I will try to do a session soon on this

  • @tanusriprasad7440
    @tanusriprasad7440 2 года назад

    Your demo app is not working , it showing invalid credentials. Could you please help.

    • @RaghavPal
      @RaghavPal  2 года назад

      Can check this - opensource-demo.orangehrmlive.com/

    • @tanusriprasad7440
      @tanusriprasad7440 2 года назад

      @@RaghavPal yes I was trying this website link and when I provided username as Admin and password as admin123 it's showing as invalid credentials. Please help

    • @tanusriprasad7440
      @tanusriprasad7440 2 года назад +1

      @@RaghavPal I will check again and let you know.

    • @poa193
      @poa193 2 года назад

      it doesn't work for me either! is it my problem?

    • @tanusriprasad7440
      @tanusriprasad7440 2 года назад +1

      @@poa193 last time I checked it worked for me.

  • @ruthramoorthy6601
    @ruthramoorthy6601 5 лет назад

    Hi i cant able to open ride

  • @kopula
    @kopula 6 лет назад

    Please publish next video am eagerly waiting..

    • @RaghavPal
      @RaghavPal  6 лет назад

      Will do it soon Venkatesh

  • @arskarthick7440
    @arskarthick7440 2 года назад

    FAIL : Value of variable '@{CREDENTIALS}[0]' is not list or list-like.

    • @RaghavPal
      @RaghavPal  2 года назад

      HI Karthick, pls check the format syntax again

  • @soumya_ranjan.
    @soumya_ranjan. 3 года назад

    If the keywords are not being detected, take help from this
    forum.robotframework.org/t/cannot-see-all-the-keywords-in-ride-from-the-selenium-library/785

  • @avishekanand5216
    @avishekanand5216 3 года назад

    7:30

    • @RaghavPal
      @RaghavPal  3 года назад

      Let me know the question

    • @avishekanand5216
      @avishekanand5216 3 года назад

      @@RaghavPal it's was just a time stamp, it tells me from where to resume the video. BTW nice video👍🏻

  • @DindinAvenido
    @DindinAvenido 5 лет назад

    Hi Raghav, I can not open OrangeHRM the page will show "Page not found". Can you help me? Thank you

    • @RaghavPal
      @RaghavPal  5 лет назад

      Hi Geraldine, Pls try opensource-demo.orangehrmlive.com/