html - Selenium click doesn't work but mouse does -
Can anyone explain / what I want to click on for an item in Selenium IDE, This is working on something else for me , When There is no correct event for which you launch Test them all, or execute them all, I use the following command and this works most of the elements which do not work with a simple 'click' command : You can try more events by this unless it does not work, if you are still having problems, make sure your element path is correct (Selenium Firefox IDE Use the "Find" button, while the firebug opens and this element will color and the yellow code will be HTML code so that you can make sure the element path is correct), Another move Right click on the element and "tex" Wait for T Clicking on ". . "And copy the path click and other commands from what I said earlier If you want to click, then the element is hidden (for example, a floating layer html), then its attributes Change the display: None to display: Block in firebug (temporary) and in this way you can use the right click moves to remove the correct path click Do
target work by using <
mouseover ,
mouseUp and
mouseOut I use them over the top For example:
click the waitForElement mouseDown mouseOver mouseDown MouseOut
click < I did not work while using / code> I also have not found any errors and do not know what to do. Any help is appreciated. Update:
I clicked the find button in the Selenium IDE and highlighted the element with all 6 of the above commands, But whenever I run any command or case, I never click it. There are all kinds of implementations to click, some use javascript that listen to the mouse down event, click some mouse or click on the click or mouse click or the radius and click Applicable in the form of an appropriate element and then the JS starts getting started and you expect the click action,
& lt; Tr & gt; & Lt; TD & gt; Focus & lt; / TD & gt; & Lt; Td> // div [@ class = 'dhtmlx_wins_btns_button dhtmlx_button_close_over_pressed'] & lt; / Td> & Lt; TD & gt; & Lt; / TD & gt; & Lt; / TR & gt; & Lt; TR & gt; & Lt; TD & gt; Mouse over & lt; / TD & gt; & Lt; Td> // div [@ class = 'dhtmlx_wins_btns_button dhtmlx_button_close_over_pressed'] & lt; / Td> & Lt; TD & gt; & Lt; / TD & gt; & Lt; / TR & gt; & Lt; TR & gt; & Lt; TD & gt; MouseMoveAt & lt; / TD & gt; & Lt; Td> // div [@ class = 'dhtmlx_wins_btns_button dhtmlx_button_close_over_pressed'] & lt; / Td> & Lt; TD & gt; & Lt; / TD & gt; & Lt; / TR & gt; & Lt; TR & gt; & Lt; TD & gt; Mousedown & lt; / TD & gt; & Lt; Td> // div [@ class = 'dhtmlx_wins_btns_button dhtmlx_button_close_over_pressed'] & lt; / Td> & Lt; TD & gt; & Lt; / TD & gt; & Lt; / TR & gt; & Lt; TR & gt; & Lt; TD & gt; MouseDownAt & lt; / TD & gt; & Lt; Td> // div [@ class = 'dhtmlx_wins_btns_button dhtmlx_button_close_over_pressed'] & lt; / Td> & Lt; TD & gt; & Lt; / TD & gt; & Lt; / TR & gt; & Lt; TR & gt; & Lt; TD & gt; ClickAt & lt; / TD & gt; & Lt; Td> // div [@ class = 'dhtmlx_wins_btns_button dhtmlx_button_close_over_pressed'] & lt; / Td> & Lt; TD & gt; 0,0 & lt; / TD & gt; & Lt; / TR & gt;
Comments
Post a Comment