Included patch fixes a problem with selecting option elements and adds support for selenium IDE commands, so you can copy-past selenium IDE tests (exported to PHP) to your test file.

Comments

attiks’s picture

StatusFileSize
new2.72 KB

New patch with support for drag and drop

ygerasimov’s picture

Wow! This is great idea! I will take a look at it as soon as possible! Thank you!

ygerasimov’s picture

Category: bug » feature
Status: Needs review » Postponed

I think it is reasonable to separate Selenium IDE command to separate class. The full list of methods that should be implemented we can take from PHPUnit implementation https://github.com/sebastianbergmann/phpunit-selenium But the list is really HUGE! So it will take plenty of efforts to support Selenium IDE commands.

I see a lot of talks about integration with PHPUnit. So lets hold this issue for a while as we might will rebuild nearly everything soon.

attiks’s picture

You're right, I think we better wait, there's also a new way to do testing: https://github.com/weitzman/upal

i created an issue to merge https://github.com/weitzman/upal/issues/3

alberto56’s picture

Hi, I would appreciate a quick example of how to select an element in dropdown. I have applied this patch and I am trying to select an element with

$this->select('id=id-of-select-element', 'value=desired-value');

but I'm getting an error that id=id-of-select-element does not exist (but it does!)
I am not well-versed in selenium, so I'm not sure I'm on the right track.
Please see also #1553370: drupalPost() can't select from a select list

Thanks!

Albert