I looked at Selenium a bit and I like it, since I know some Java programs and I think Java and C # are pretty straightforward for simple things like this.
However, I am struggling with a test that creates a new post in Wordpress from the Dashboard page:
This is the Selena code (in C #): (The driver instance is obviously the driver class that I created - to launch the browser and connect to the wordpress site.)
1: Driver.Instance.FindElement(By.Id("title)).SendKeys(title);
2: Thread.Sleep(1000);
3:
4: Instance.SwitchTo().Frame("content_ifr");
5: Thread.Sleep(1000);
6:
7: Driver.Instance.SwitchTo().ActiveElement().SendKeys("something");
Now what happens is that the title is easy to find (by id, so I did not expect problems there), and I can easily insert the title text (line 1).
But the inline frame for the message body causes problems. When you start the test after filling in the topic, the cursor changes the area of the body (line 4) - as planned. However, nothing else is happening. The SendKeys ("string") (ine 7) method does not seem to work there.
Any ideas?
EDIT: Of course, the important information is that the iframe in Wordpress just loads the TinyMCE editor. Thus, in the page source there is only a body tag with loading the javascript editor.
EDIT2: Of course, something suddenly changed. Without ANY change on the wordpress page, "content_ifr" is now suddenly absent (? !!!!!?). The Selenium test fails with "inability to find a frame ...", and it is also unexpectedly missing from the page source.

EDIT3: I also noticed something:
Driver.Instance.SwitchTo().Frame(iframe);
Driver.Instance.FindElement(By.Id("tinymce")).SendKeys("message body");
, mce, .SwitchTo(). - . - . - Selenium. Selenium , .
, SendKeys(), . , , , , . .
EDIT4 (): , , IJavaScriptExecutor, .