Есть отличная удаленная работа для php+codeception+jenkins+allure+docker спецов. 100% remote! Присоединиться к проекту

Robotframework: when fill in description then text is not displayed into the FB group post

robot-framework
selenium
python
Теги: #<Tag:0x00007f7b63356408> #<Tag:0x00007f7b63356278> #<Tag:0x00007f7b63355fd0>

(Alex) #1

Can someone help me with the problem that text is not displayed after was filled into Description section to a FB group post.

Thanks in advance.

Screenshot of the form where to fill the text: http://imgur.com/1wSXxN3

That’s my code in Robotframework:

Click on description
    Click Element   css=div._1mf._1mj
    Sleep   1

Fill on description
    Press Key   xpath=//div[@class="_1mf _1mj"]   \\65
    Sleep   1
    Press Key   xpath=//div[@class="_1mf _1mj"]   \\13
    Sleep   1
    Press Key   xpath=//div[@class="_1mf _1mj"]   \\66
    Sleep   1
    Press Key   xpath=//div[@class="_1mf _1mj"]   \\13
    Sleep   1
    Input Text    xpath=//div[@class="_1mf _1mj"]   ${URL-1}

That is Description code from the FB page:

<div class="_5rpb">
  <div style="outline: medium none; white-space: pre-wrap; word-wrap: break-word;" spellcheck="true" role="combobox" class="_5rpu" aria-owns="js_cv" aria-haspopup="false" aria-expanded="false" aria-describedby="placeholder-dsa47" aria-autocomplete="list" contenteditable="true">
    <div data-contents="true"><div data-offset-key="b59el-0-0" data-editor="dsa47" data-block="true" class="">
  <div class="_1mf _1mj" data-offset-key="b59el-0-0">
    <span data-offset-key="b59el-0-0">
      <br data-text="true">
    </span>
  </div>
</div>