- rodale_janetActive particpant
- Posts : 10
Join date : 2014-03-07
Using Webdriver to put values into a WYSIWIG editor
Thu May 08, 2014 7:58 pm
I am testing the moving of one of our magazines to Drupal 7. When I recorded my test for adding content, Selenium never added the step for me adding information within the body of the content using the WYSIWIG editor. Can someone tell me how I can do this??
It will not let me attach the file containing the HTML even though it is a .txt file. If someone has an idea on how I can do that I will then post the HTML. Thanks!!!
It will not let me attach the file containing the HTML even though it is a .txt file. If someone has an idea on how I can do that I will then post the HTML. Thanks!!!
- rodale_janetActive particpant
- Posts : 10
Join date : 2014-03-07
Re: Using Webdriver to put values into a WYSIWIG editor
Fri May 09, 2014 3:08 am
- Code:
Here is the HTML:
<div class="field-type-text-long field-name-field-body field-widget-text-textarea form-wrapper" id="edit-field-body"><div id="field-body-add-more-wrapper"><div class="text-format-wrapper"><div class="form-item form-type-textarea form-item-field-body-und-0-value">
<label for="edit-field-body-und-0-value">Body </label>
<div class="form-textarea-wrapper"><textarea class="text-full form-textarea" id="edit-field-body-und-0-value" name="field_body[und][0][value]" cols="60" rows="5"></textarea></div>
</div>
<fieldset class="filter-wrapper form-wrapper" id="edit-field-body-und-0-format"><div class="fieldset-wrapper"><div class="filter-help form-wrapper" id="edit-field-body-und-0-format-help"><p><a href="/filter/tips" target="_blank">More information about text formats</a></p></div><div class="form-item form-type-select form-item-field-body-und-0-format">
<label for="edit-field-body-und-0-format--2">Text format </label>
<select class="filter-list wysiwyg form-select" id="edit-field-body-und-0-format--2" name="field_body[und][0][format]"><option value="full_html" selected="selected">Full HTML</option><option value="filtered_html">Filtered HTML</option><option value="plain_text">Plain text</option></select>
</div>
<div class="filter-guidelines form-wrapper" id="edit-field-body-und-0-format-guidelines"><div class="filter-guidelines-item filter-guidelines-full_html"><h3>Full HTML</h3><ul class="tips"><li>Lines and paragraphs break automatically.</li><li>[[nid:123]] - Insert a node content</li></ul></div><div class="filter-guidelines-item filter-guidelines-filtered_html"><h3>Filtered HTML</h3><ul class="tips"><li>[[nid:123]] - Insert a node content</li><li>Web page addresses and e-mail addresses turn into links automatically.</li><li>Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd></li></ul></div><div class="filter-guidelines-item filter-guidelines-plain_text"><h3>Plain text</h3><ul class="tips"><li>No HTML tags allowed.</li><li>Web page addresses and e-mail addresses turn into links automatically.</li><li>Lines and paragraphs break automatically.</li></ul></div></div></div></fieldset>
</div>
</div></div>
- rodale_janetActive particpant
- Posts : 10
Join date : 2014-03-07
Re: Using Webdriver to put values into a WYSIWIG editor
Fri May 09, 2014 3:09 am
I need to know what in the code above I can use to get content I enter into the body field to be executed using Webdriver.
- Comparing SVG Piechart values with database using selenium webdriver
- selecting search item values in drop down using selenium webdriver
- Selenium webdriver is entering input values slowly for IE10 browser
- Unable to select textarea values using webdriver (controls are develped using BMC remedy software)
- I downloaded and installed Selenium WebDriver Jar files in my Eclipse, but still i am facing issues and couldn't run the webdriver scripsts.
Permissions in this forum:
You cannot reply to topics in this forum