Cannot run or debug any test using selenium - selenium

I'm trying to run or debug any test from my project " class library " , but no thing is happened .
every time I run any of the tests nothing happened.
enter image description here

It's difficult to guess based on a picture alone but I'm guessing you're missing the run configuration in your IDE.

Related

Selenium IDE Test Runs in GUI - But Fails when run in CL (linkText not Visible)

When my saved project and test runs in the Selenium IDE GUI it's fine, but when I perform the same test called via the command line side runner it fails. The issue appears to be the linkText not being visible, but I don't understand why it would fail when it runs fine form the GUI.
You can see the last step (8) as passed, with reference to the linkText
I then save the project in my local folder
And run it again using the side runner command
ElementClickInterceptedError: element click intercepted: Element Corporate Project/Program/Event (CORP) is not clickable at point (798, 199). Other element would receive the click: ...
It appears that the linkText maybe covered? The weird thing it's visible to me when the selenium test is running, just before it hangs. I did try to add some wait commands, i.e. "wait for element visible". But didn't seem to help.
Maybe I didn't insert the command properly?
I feel like I must be missing something obvious. Any suggestions?
I've found similar threads on GitHub that indicate differences in the way the IDE core and web driver work. One user indicates it actually IDE that's clicking through an overlay. I've managed to overcome my issues using simple pause commands, unsure why the wait commands didn't work for me.

Need Help on chrome drive run test, everytime i run test I Agree appear and test stops

hello everyone i am new .
last night i was trying to do a test looking at tutorial but when i start run test chrome opens up at the screen "before you continue to Google Search " Customise or I agree screen , test does not go further. i will post screen shot too, i have been looking for answer for few hours on internet but i can not find any. enter image description ,no matter what for test i run test stops when chrome browser pops up .i have downloaded in correct way chrome drive
everytime run test it stops at Customise I Agree screen
everytime run test it stops at Customise I Agree screen
everytime run test it stops at Customise I Agree screen
Hmm, Selenium is better for opening a website and not searching. If you have a website in mind I would just put in the URL instead of searching. You could do:
https://www.google.com/search?q={thing you are searching here}
If you need any more help let me know!

Running module specific tests in Intellij

I'm new to Intellij and I keep running into this problem where the IDE refuses to run module specific tests.
The steps I take are:
I drill down into the module to test/java
I right click on java and click run-all-tests
In the console all I see is "Process finished with exit code 0", and in the left pane that shows the results of each test run, I just see a <default package>. I dont see any of the tests.
Has anyone else encountered a problem like this?
When I checkout the code for the first time, it all seems to work. But after using it for a couple of weeks or so I get this problem.
Vivek

Selenium IDE: Is it possible to continue a failed test after manually fixing an issue?

I'm using the recorder for creating a large test case. The recorder sometimes records a click rather than a clickAndWait which results in a failed test.
When the test fails while running the replay I would like to be able to fix the test and then hit resume. However, I haven't found any way of resuming. I can fix the issue, but then I have to re-run the test from the beginning...
Does anyone know of any selenium version that has this kind of resuming functionality? I'm currently using Selenium IDE 1.10.0.
Dont know there is a resume option but we can start the play back from the error position by using "set/clear start point" ,right click on the position you want to resume and select set/ clear start point

Element link not found in Selenium

I am executing a simple recorded script in Selenium , in which i just search a page in Google and then click it , but when Run that recorded script it is giving me the "Error [error] Element link not found".
And following is the Script which i am running,any help would be very useful.
New Test
New Test
open
/
type
q
Bill Gates
click
link=Bill Gates: Chairman
click
link=Bill Gates: Chairman
I got the same error message while going through the tutorials online. I found out that the scripts were running too fast for FF to load the links. If you slow down the playback by moving the green button on the Fast-Slow bar to somewhere in the middle the scripts run without any errors.
I guess I know the answer. It might be bcz of any javascript error(you can see that on the status bar at the
Right corner(IE)) or that link element might not be placed correctly in the box(box model).
Here you can use
Selenium.focus("link=text")
:selenium.keyPressNative("10") . It presses the enter key.but while selenium is executing this statement
Do not change the focus from your AUT (don't touch the mouse).
In IDE ,just paste the above statement on click().
Well, I don't think you have to slow the speed down. You know the problem is caused by clicking on the link before it is available, so you could add an extra command waitForVisible (e.g. link=Bill Gates: Chairman) before the clickAndWait command.
Im assuming you are using Google instant as there is no "click search button" command, the link is probably not preset because selenium is not waiting for Google instant to respond or the javascript to render the link. If you manually add in a click command to search it should solve it.
My solution is almost the same as Cuongs. Though I change the speed by using a command and change it back afterwards.
Before you click the link, you can set the speed to slow:
Command: setSpeed
Target: 3000
You can change the speed afterwards again to ~1000
I also had same problem. I did two things which fixed the problem. I changed the speed in Selenium IDE from fast to slow (located at top left of IDE), and I minimized the IDE after hitting play button. I guess for people using only one monitor, minimizing Selenium IDE would help the test find the thing it is looking for; for ppl with two screens, opening Selenium IDE in one screen, and opening browser in another screen would be best.
Info: Installing this plug-in (Selenium IDE: Flow Control) fixed lots of unexpected errors for me while playing with Selenium IDE:-
https://addons.mozilla.org/en-US/firefox/addon/flow-control/?src=dp-dl-othersby