enter image description hereHi,Iam new to selenium and java testing. Iam trying to right click on google.com about link and open the link in new window. Up to right click my code works fine. When I send down-arrow nothing happens in the browser. Can anyone tell what's wrong with the code. I have tried it in all different browsers.
Related
I have a special problem. I made a software in java, what strore informations from a website. But this website shows this data, just if I click a button. It's a simple webdriver problem, but I can click a button only 10 times. It's a very big problem form me, and I cant't do this. :D
The site counts my clicks, if I reach ten clicks, it tells me, I should login. But, it possible to login only with facebook or google account. I don't want to login with facebook or google.
The solution is, I have to close the browser, and I have to reopen that. How can I do this:
driver.close();
driver = new FirefoxDriver();
Okay, but every time when I use this formula, the java code opens a new webdriver. What is the solutin of this problem? Maybe driver.quit(); ??
No!!
If I quit the driver, I can't create a new driver. So, when I open the 321654th webpage, I have 321654/10 webdriver among Windows tasks.
What is the real solution?
Have you tried deleting cookies? You might also then have to refresh the page.
driver.manage().deleteAllCookies()
Try with refresh your page instead of close. Use below code:
driver.navigate().refresh();
I am using Selenium and Java to write a test for Chrome browser. I noticed that
action.sendKeys(Keys.CONTROL+ "j").build().perform();
action.keyUp(Keys.CONTROL).build().perform();
does not open download page on Chrome but works on Firefox.
why doesn't it work? and what would work on chrome too?
Follow this steps.
a) Press Ctrl-Shift-J (this will launch the chrome://inspector... window)
b) Change focus back on the PeopleSoft Page and then press Ctrl-Shift-J again. This will give the PeopleSoft page info.
If not according to knowledge cannot be customized keyboard shortcuts on chrome.
Try this ->
Open a new Tab and enter URL -> chrome://downloads/
This should solve your problem
I have implemented google No CAPTCHA reCAPTCHA in my spring web application.When ever i click check box it always shows pop up of picture selection.This not only once every time when i click check box it pops picture selection.
Is this right working of recapctha.
Please give me some reason why it is happening like this.is there issue with my working code or what might be the reason .Please help me on this.
Requirement is to download the Excel file from IE9 browser. I could able to click the Download button using Web driver in Java by which new window is displayed as shown below:
When I am trying to view the attributes of save button in IE developer tool, tool could not recognize them. Please help where is the problem with this window or how to resolve this issue.
Unable to click on Submit button in Remote Machine where BitDefender is installed using Webdriver in Java. The issue is:
I have to execute my test scripts by creating a jar file in Remote Machine, where BitDefender is installed in it. when executing the jar file in IE browser in Remote Machine, I am Unable to click on Submit button (find Screenshot1), because the BitDefender tool bar is coming on Submit button when running it using Webdriver. I am getting an Exception here.
Actually when executing it Manually, I can click on Submit button with out any issues, i can click on it as in Screenshot2
Please can any one help me out on this issue without closing or moving the BitDefender tool bar in IE browser. Help will be appreciated.
Using the Actions() class.
Actions action = new Actions(driver);
action.moveToElement(driver.findElement(By.id("submit")).moveByOffset(x,y).click().build().perform();
//where x and y are the visible lower right corner of the button - you can find its dimensions from firebug or similar
Finally, if the element is actually part of a form you can just call the .submit() method on that form. Which would actually avoid having to click on the hidden button entirely.