when i tried to edit manually added unordered list getting this error in console "The specified element mode is not supported on element: "ul"
ckeditor version is 4.10.1
Related
I need to find an XPath for the below screenshot. Please help to write an XPath for the highlighted box.
I have tried
//span[contains(text(),'What's Up')]
and also
//span[#class='fontSize16' and contains(text(),'What's Up')]
P.S.: When I'm trying using to the XPath generated from firepath, i.e.
.//*[#id='appContent']/div/div[1]/div/div[1]/div[1],
I'm getting below error(refer image2):
Error :
FAILED: login
org.openqa.selenium.WebDriverException: unknown error: Element ... is not clickable at point (627, 118). Other element would receive the click:
(Session info: chrome=65.0.3325.181)
I am working on calabash android with the platform ruby.
And I have to find the visibility of an element / image and it has id and as well only one property ie., enabled , that too always true.
and i tried the options isVisible , isDislayed but am not sure these properties exists
First try this command
query("*")
If it shows element, then proceed with getting element using ID.
query("* css:'#id_name'")
The above line will display all the element with ID=id_name.
Note: It will show only visible element.
If you need to get all element(visible/hidden), you need use this code:
query("* all css:'#id_name'")
I want to apply the ckeditor inline editing to all elements with a specific attribute.
The problem is that its only applying to the very first element with the attribute, and not the rest.
How can i apply the ckeditor inline text editing to all elements with a specific attribute?
$(".edit-element").ckeditor();
PS: im using ckeditor on elements that have contenteditable="true" and not textareas.
How about converting it to use .each? You can then also check the amount of elements you are targeting very easily (see comment);
$(".edit-element").each(function() {
// Log element with something like console.log(this);
$(this).ckeditor();
});
I tried this the first time and it didnt work. this time i noticed it was sending out this error
Uncaught Error: The specified element mode is not supported on element: "a".
and so I enabled the editor to work on "a" tags and span by adding this
CKEDITOR.dtd.$editable.span = 1
CKEDITOR.dtd.$editable.a = 1
I am trying to automate actions and unable to select an element due to its dynamic nature.
I am running Selenium web driver on ruby and am trying to select value that is not present in page source.
<a class="linkOtherBrowser" onclick="addChangeStatusField('InitialSelectionPage');submitFormByAction('ChangeStep');return false;" href="#"><div class="processBarElement noSelected">
<div class="whiteBeforeProcessBarTitles"></div>Initial Selection</div>
<div class="endOfElementOfProcessBar"></div></a>
I am trying to select value "Initial Selection" from above.
Could anyone pls help out?
Thanks,
Abhishek
As the HTML is generated by Javascript, You need to inspect the DOM instead of viewsource and write the element locator code accordingly.
Note: In IE, Firefox or Chrome you can press F12 key to see the developer tools and use the inspect element option to check the DOM.
Whatever element is generated dynamically is added in your DOM. WebDriver has capability of clicking on elements are the visible on UI and hence if the generated element is visible to regular user's you can click on the element easily.
To do so, you need to identify the best selector for that newly generated click, could be xpath or css. Once you identify the selector you can consider clicking clicking using following code
WebElement element = driver.findElement(By.xpath("//a[#title='NAME_TITLE']"));
element.click();
OR
WebElement element = driver.findElement(By.css("a[title='NAME_TITLE']"));
element.click();
There are more options within your By.class on picking the element in best way
Trying to do a simple example of a jQueryTOOLS Tooltip (http://flowplayer.org/tools/demos/index.html) keeps giving:
IE7,8,9 reports:
Unable to get value of the property 'jquery': object is null or undefined
jquery.tools.min.js, line 25 character 1057
FireFox reports it as: "d is undefined"
I'm using the latest jQuery and jQuery UI:
jquery-1.7.1.min.js
jquery-ui-1.8.17.custom.min.js
jquery-ui-1.8.17.custom.css
(I then have to do the jQuery.noConflict(); because of previous
years of work using $)
then I'm including jQuery Tools v1.2.6
I then try the absolute basic test just like they have on their page:http://flowplayer.org/tools/demos/tooltip/index.html
and I keep getting that error. I have tried IE7,8,9,Chrome,FF,Safari all with same result. Any idea what I'm missing?
I had the same issue so I used this instead. http://docs.jquery.com/Plugins/Tooltip
Worked first time. Just had to change
$("#eleId a[title]").tooltip();
to
$("#eleID a").tooltip();
and add the CSS.