Selenium IDE unable to palyback with FCK Editor text - selenium

i am new to selenium and works in a complex project where there is a need to record and playback all modules. So i have a web page with FCK Editor field where user have to enter text. I recorded successfully , but IDE doesnt enters into editor text area to enter any message while play back the test case.
Please help me to overcome the issue.

runScript
CKEDITOR.instances['body'].setData('<p>testContent</p>');
change "body" for the name of your ckEditor instance

Related

Selenium IDE "Tab not found' although it is open

I'm using Selenium IDE to automate some browser processes, I need to do a test from which I open the source code of a page (view-source:https://www.youtube.com/watch?v=JeQuelXsUYA) and trying to find a certain word, I am using youtube as an example, however when clicking on "Select target in page" the following error appears "Tab not found / No guide is available for this test case, please keep recording or play. " I've tested it with several pages, and command recording works fine, but every time I open the page's source code, the selenium IDE doesn't record the commands.
Thanks in advance.
[![This is the image of the error, the first script I ask to open the page's source code works, however when I try to select target in page, the error appears, as if the page were not open.1

Automate browserstack: Keyboard is not open on iphone web

I am using robot framework, SeleniumLibrary and browserstack for automation. The issue I am having is now that the keyboard for iphone is not open every time I interact with input field. Although, it is working fine in any Android & any browsers.
Input Text xpath=//input[#class='example'] XXX
I tried to first click on the input field, then insert the string. But the issue is still occurs. Anyone has any ideas why?
Thank you.

TestCafe Click Spawned Pop Up to Save CSV File

I can't find any way to click "Save" on a pop up that spawns during a test. TestCafe needs to click the "Save" button so I can obtain the CSV file.
I've tried searching for a way to do this in the docs but the closest thing I found so far is .pressKey('enter'). However, this fails to click 'Save' and I don't know what other options I have.
Screenshot of exactly what I'm trying to click:
enter image description here
I provided the end of my code (you'll have to assume all the prior parts of a TestCafe test are preceeding this:
.click(export_button)
.click(csv_pill)
.wait(3000)
.pressKey('enter')
I expect to somehow be able to have the mouse detect this 'Save' button and it clicks it to save this CSV file.
TestCafe cannot test native browser dialogs. They should be prevented. If you encountered this behavior during the test, please create a bug report with a simple example page or link to a tested site.

FileUpload with selenium and ExtJS

I am trying to test an Extjs 4 application that has a file upload. The test is written in selenium. The component is a Ext.ux.form.FileUploadField. And it works fine when the user clicks the browse button and selects the file.
However when this is done by selenium using sendkeys, or even when you paste the value in the field, then the upload no longer works.
I noticed that on server side the content length is no longer properly received.
Any fixes, workarounds for this problems?

Selenium cannot click tab in magento module detail page

I'm trying to validate data using selenium version 1.0.9 in magento grid and its detail page.
First, I walked through Selenium IDE from login page to module detail page and click the tabs available there. Eventually, IDE generates PHP codes so I put the code into proper location.
Note: Here, I have clicked the two tabs so that the events get recorded into selenium IDE.
Then, I run the code from command prompt using following command:
phpunit --configuration /var/www/tests/phpunit_test.xml
I got the error (something like):
ERROR: Element //a[#id='test_tabs_form_section']/span not found.
I modified the code and tried to open the detail page before executing click to above link i.e. "test_tabs_form_section", I am getting same error.
Another strange this is if I verify any text of detail page and remove the code that calls click to module detail tabs, it is works, not sure why?
But I really want to open detail page and click to tab, get forms element values using xpath and validate the data.
Can somebody help me, please?
Any help or suggestion is highly appreciable!
Looking forward to hear from stackoverflow geeks!
Thanks
In case this helps anybody:
I found out more things work if firebug is active. This actually makes sense cause firebug will show the final DOM tree in all it's debugging screens, so it's possible selenium is now able to reconstruct the element path because firebug altered the internal DOM.
If something doesn't work with the default element selection created by Selenium IDE, try switching it over to xpath:id-relative. You're already using that in your question, so maybe you there's an even better selector or you will need to resort to using clickAt instead of click.