I am writing an automation test script using Robot Framework & Selenium2Library for testing our web application ( in .txt
format ).
One of my test cases involves to select few lines of text from web page, following with this text selection, some text formatting options will render in page to modify the style of that particular selected text ( Please refer the following image ).
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 ! ]