This question already has answers here:
Selenium - MoveTargetOutOfBoundsException with Firefox
(9 answers)
MoveTargetOutOfBoundsException problem with chromedriver version >74
(2 answers)
Closed 2 years ago.
For .perform() method of ActionChains class we are facing exception “MoveTargetOutOfBoundsException: Message: move target out of bounds” frequently in application. Majorly found for mouse actions and click at coordinate on canvas element.
Scrolling we already tried and element is center of the screen still issue is observed
we are using robotframework==3.1, robotframework-seleniumlibrary==4.3.0, chrome=83.0.4103.61, chromedriver=83.0.4103.14
Related
This question already has an answer here:
How to avoid "Component is declared but its value is never read." when I use Vue3 setup syntax?
(1 answer)
Closed 11 months ago.
My VSCode (Vetur) is displaying this warning, however the imported component is being used in the template.
Warning in import :
Component used :
Another issue is that the summaries are appearing in duplicate, as well as the CSS color thumbnails. I have already uninstalled some extensions and reviewed the settings but I couldn't find the option that causes this.
Color duplicate :
Vetur is deprecated and doesn't actually support <script setup>. The Vue docs officially recommend Volar.
Uninstall Vetur, and use Volar instead.
This question already has answers here:
DeprecationWarning: executable_path has been deprecated, please pass in a Service object
(1 answer)
Selenium "selenium.common.exceptions.NoSuchElementException" when using Chrome
(1 answer)
"selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element" while clicking a 'Next' button with Selenium
(1 answer)
Closed 1 year ago.
I have a problem when I use selenium in google Colab
this problem appears when I use the XPATH selector in my code, my script is running right well in the local machine, but in google Colab, it doesn't work.
that is the error:enter image description here
List item
ib/python3.7/dist-packages/ipykernel_launcher.py:37: DeprecationWarning: find_element_by_ "commands are deprecated. Please use find_element() instead".
Also when I replace XPATH_selector with find_element_by_ always the problem is stilling.
This question already has answers here:
pageLoadTimeout in Selenium not working
(2 answers)
pageLoadTimeout is not working in Selenium - Java
(2 answers)
How to make selenium to reload the desired url if it takes too long loading
(3 answers)
Closed 2 years ago.
I've got a question:
Below there is my java code for selenium to load a url in chrome browser:
chromedriver is 84.0.4147.30
Chrome version is also 84
public static int navigate(String data) {
driver.manage().timeouts().pageLoadTimeout(30, TimeUnit.SECONDS);
WebDriverWait wait = new WebDriverWait(driver, 30);
try {
driver.navigate().to(data);
wait.until(ExpectedConditions.invisibilityOfElementLocated(By.xpath("XPATH"));
....
}
What makes the automation:
when chrome is running the url is typed in the adreesbar and it loads the page.
But when the page is not loaded after 30 seconds, the function does not stop and aborts the test.
It waits endless.
I think it is the load sign in the page title tab that is the problem.
What can I do to abort the waiting when page is not loaded after 30 seconds?
Thanks in advance.
This question already has answers here:
Best way to keep track and iterate through tabs and windows using WindowHandles using Selenium
(1 answer)
Selenium switch focus to tab, which opened after clicking link
(3 answers)
Closed 2 years ago.
Still looking for resolution for following problem:
In Safari version 12: org.openqa.selenium.InvalidArgumentException: Request body does not contain required parameter 'handle'. I did see some solution saying use legacy, but not sure how to do that in selenium java.
Note: My code is working absolutely fine for Chrome, firefox, Edge browsers. I am facing this issue only with Safari.
Can anybody please help me here. Thanks in advance!
Selenium Version: 3.4/3.8
Code:
I am using Java for my scripts. Code:
String winHandleBefore = driver.getWindowHandle();
Set<String> windows = driver.getWindowHandles();
Assert.assertTrue("New browser window is not opened", windows.size() > 1);
for (String winHandle : driver.getWindowHandles()) {
String winHandleNew = winHandle;
if(!winHandleBefore.equalsIgnoreCase(winHandleNew)) {
driver.switchTo().window(winHandle);//THIS LINE GIVES THE ERROR
break;
}
}
driver.switchTo().defaultContent();
This question already has answers here:
NoSuchElementException, Selenium unable to locate element
(3 answers)
Closed 4 years ago.
I have an element that selenium doesn't recognize sometimes.
I'm using implicitlyWait of 10 seconds and when i'm runing the test sometimes it passed succesfully and the element is recognized, and sometimes it failes with error "No such element".
I tried to change the wait time to 20 seconds but it dosen't matter
try using explicit wait :
WebDriverWait wait = new WebDriverWait(webDriver,60);
wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath("//div/div/div/div/div[1]/div/div/a/i")));
I also faced this issue one time and I was facing this issue because I was was trying to select some option in the sub-menus using click to the main menu and then the sub-menu.
When used Actions class, the issue was resolved.
This could be an issue for you as well.