I am writing an automation test script using & Selenium2Library for our web application ( in .txt format ).

One of my test cases involves to few of from web page, following with this selection, some formatting options will render in page to modify the style of that particular selected ( Please refer the following image ).

Text selection

enter image description here

1) Is there any specific keyword in Robot Framework to select few text or few lines of text from a webpage ?

Here is the HTML code of the particular section :

     <div>
         I am writing an automation test script using Robot Framework & Selenium2Library for testing our web application(in '.txt' format).
     </div>

Along with that, can I store the selected text field into a variable ?

2) If I Select bold from the text formattings option, html code will change like this :

    <div>
         I am writing an <b> automation test script </b> using Robot Framework & Selenium2Library for testing our web application(in '.txt' format).
    </div>

Is there any method in Robot Framework to get the text field inside a particluar html tag ?

Here, Can I store the text field in between html <b> tag?
[ But id’s willn’t be there ! ]



Source link https://sqa.stackexchange.com/questions/15435/how-to-select-few-text-lines-using-robot-framework

LEAVE A REPLY

Please enter your comment!
Please enter your name here