I'm using Selenium scripts using Java to automate a project in CRM 2015. When I tried to click on a button using IE Webdriver it navigates correctly but focus still on clicked button and then cannot find any controls as It's implement using Single App page. Could you please give me workaround ? I tried :
driver.switchTo().defaultcontent();
driver.switchTo().ActiveElement();
but not working and still on clicked button focus.
Related
I am facing one issue while automating the web application designed using vue.js
Requirement/scenario: We have a screen where we need to select all the values(3 fields text field, dropdown, and calendar) then the Next button will be enabled.
When I ran manually this scenario its working fine but when I tried to automate this scenario I am facing an issue with dropdown.
Issue:
Using selenium I am able to select a value from the dropdown but it's not getting recognized hence Next button is not getting enabled. When I am trying to select a value manually by keeping debug point at that place it's working perfectly.
I tried the below ways but no luck
Using JavascriptExecutor
Using Actions call
Using Key events
I tried with Robot class
Select class
Thank you in advance
Adding screenshots as well:
Manual:
enter image description here
Automation:
enter image description here
My application is having a page where we select a specific country and click on submit button, then it will call APIs related to specific country. But using selenium 4 that API calls are not properly calling when we click on submit button, I tried using action.moveToElement().build.perform, JsClick, Click() and submit functionalities to click on submit button. However button action is perform and able to proceed to next page but API calls are not calling for specific selected country on click.
Is there way to do this action. This issue exist only for Selenium 4 and we used devtools concept for chrome browser in selenium 4.
Required this functionality in Selenium 4 only
I am trying to automate clickable button for a react-native based Application. I was stopped getting clickable button as in UI Automator Viewer displaying clickable button status FALSE. So, can you suggest me any other alternative way to automate the clickable action using Appium.
Using Selenium 3.5.3 version, Appium for Windows 1_4_16_1.
Image 1
Image2
First: start using appium-desktop and not an old appium server 1.4.16, but 1.7.x
Second: ReactNative app is interpreted as Native application, so you need to use Appium on client side, not Selenium
Final: In appium-desktop you can directly try to click your button to see if it works.
I am using Selenium webdriver . I want to select the "back " button of the firefox and right click the back button and select an option.
I see there is "Actions" API to right click, But i am not able to select/find the "back" button element of the firefox to right click using selenium .
Can any one please help me .
Code iam trying is :: Using firefox Driver to inittate the Webdriver
Actions action= new Actions(driver);
action.contextClick(productLink).sendKeys(Keys.ARROW_DOWN).sendKeys(Keys.ARROW_DOWN).sendKeys(Keys.RETURN).build().perform();
In the above code , in place of "productlink", i should select the back button element of the firefox browser to right click .
You cannot do that with Selenium.
You can use AutoIT with Selenium to click on that.
Refer to the following article on how to use AutoIT.
http://toolsqa.wpengine.com/selenium-webdriver/autoit-selenium-webdriver/
Here is what you can do. Try to use "Navigation" Commands in selenium.
driver.navigate().to("http://www.DemoQA.com");
there are many commands you can perform on it. If you still find issues using it let me know.
I have to test with selenium a Web Application.
This :
action.moveToElement(webElement,x,y).build().perform();
Is working for 99% of my web elements...
Now I have a web element that is not detected by Selenium IDE.
My boss explains to me that this web element is a kind of plugin. This web element display video from camera.
When I try with Selenium IDE my click isn't detected.
That's why I tryed to do it with action.moveToElement(webElement,x,y).build().perform();
I have a webPath (CSS XPath) for this web element. When I try
webdriver.findElement(By ...).click();
It's not working but I don't have an exception. I guess Selenium do a click and I don't understand why it's not working.
dailymotion.com is like youtube.com (I can't use youtube at work...)
When I try to click on pause on a daylimotion video Selenium IDE don't detect my click. I guess this is the same problem.
I have found this constructor : public Actions(Keyboard keyboard, Mouse mouse) but I don't know how to use it.
I think I can't use java.awt.Robot because I'm working with Selenium grid and I have a lot of node...
Any suggestion ?
If can't able to find the webelement you can use coordinates to simulate click..
Actions builder = new Actions(driver);
Action action= builder.moveByOffset(40, 40).build();//change the x and y coordinate accordingly
action.perform();