vendredi 6 novembre 2020

How can i get text written inside html/body present inside div in selenium web-driver in java

In this code i want to enter the text for id cke_1_contents and input field is html/body. i tried with xpath and id but it is not working, How can i get written the text inside the text-area

[<div id="cke_1_contents" class="cke_contents cke_reset" role="presentation" style="height: 200px;"><span id="cke_86" class="cke_voice_label">Press ALT 0 for help</span>
<iframe src="" frameborder="0" class="cke_wysiwyg_frame cke_reset" style="width: 1010px; height: 100%;" title="Rich Text Editor, mailContent" aria-describedby="cke_86" tabindex="0" allowtransparency="true">
<html dir="ltr" lang="en">
    <head>
    <title data-cke-title="Rich Text Editor, mailContent">Rich Text Editor, mailContent</title>
    <style data-cke-temp="1">html{cursor:text;*cursor:auto}img,input,textarea{cursor:default}</style>
    </head>
    <body contenteditable="true" class="cke_editable cke_editable_themed cke_contents_ltr cke_show_borders" spellcheck="false">
    <p>Hi, this is test mail</p>
    </body>
</html>
</iframe>
</div>

Aucun commentaire:

Enregistrer un commentaire