User Profile

Collapse

Profile Sidebar

Collapse
davidraimosson
davidraimosson
Last Activity: Dec 12 '12, 09:42 AM
Joined: May 25 '12
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • davidraimosson
    replied to Selenium + C# + hover = difficult
    After some further struggling I think I know what the problem is. Namely that the FirefoxDriver uses synthetic events instead of native events. Because of that the hovering was never triggered. I got it to work with the InternetExplore rDriver which always uses native events.

    If I could find out how to use native events with the FirefoxDriver, which should be possible, then I suppose it would solve the problem as well.
    See more | Go to post

    Leave a comment:


  • davidraimosson
    replied to Selenium + C# + hover = difficult
    I've tried to simulate a hover on the following simple HTML code as well, without success:

    Code:
    <!DOCTYPE html>
    <html><head>
    <title>Test</title>
    <style type="text/css">
    <!--
    
    #test {
    	background: #00ff00;
    	display: block;
    	height: 20px;
    	width: 200px;
    }
    
    #test:hover > div {
    	display: block;
    }
    ...
    See more | Go to post

    Leave a comment:


  • davidraimosson
    started a topic Selenium + C# + hover = difficult

    Selenium + C# + hover = difficult

    Hi!

    For a couple of days I've been trying to use Selenium to automate testing of a website. This fails because of a hidden menu item that is only displayed when the parent item in the menu is hovered.

    The website I'm trying to test on is found here: http://www.sweetarabia ns.com/.

    The parent menu item is "Stallions" , which is contained in a HTML LI item. This is also the item to be hovered....
    See more | Go to post

  • Solution found

    I've found a solution that is good enough: namespaces. Next time I'll read the documentation better. I should also mention that a solution with a Fibonacci class could solve the problem, but I didn't find that to be satisfying.

    Below the content of the files can be found.

    fib.cpp

    Code:
    #include "fib.h" 
     
    namespace test 
    { 
        int fib1(int
    ...
    See more | Go to post

    Leave a comment:


  • davidraimosson
    started a topic SIP Python/C++ binding fails to compile

    SIP Python/C++ binding fails to compile

    Hi all!

    After successfully compiling a Python/C binding with SIP I wanted to do the same thing with Python/C++. For some reason this doesn't work.

    Here's the files:

    fib.cpp
    -----------------------------------------------
    Code:
    #include "fib.h"
    
    int fib1(int n)
    {
    	if (n <= 0) {
    		return 0;
    	} else if (n <= 2) {
    		return 1;
    ...
    See more | Go to post
No activity results to display
Show More
Working...