Kantu testing automation Select button - selenium

I have an issue with Kantu Select button on both Firefox and Chrome on Mac When I press the Select button to get the object locator on the page I see the Kantu icon with "yellow S" that means that Kantu in Select mode. However, when I click on any object in the page; it doesn't select anything. I accedntially opened a new tab and found that the Select is working on the new opened tab, instead of the required first tab.
Any help please?
Thanks

Related

IE issue in Selenium: new window is opening instead of new tab

When a link is clicked manually in my application, it opens in new tab in Chrome and IE.However when my script is run, the link opens in a new window in IE instead of new tab. Same script runs as expected in Chrome.
Has anyone faced this issue?
When a link is clicked, I understand your test script has code to just do
element.click()
which opens the link in new tab.
If yes, its upto the app code to open in a new tab or new window. and if it is working in Chrome and not in IE, its nothing to do with your Selenium Test script.
You got to check with your developer to troubleshoot it. I hope it answers your query.

Robot Test not selecting new window

the application under test is an internal site. i am not able to select the new window when i run the test in IE. this is the part of my test that is having the error
Run report
input text txtSearchKey TestProduct
click element searchButton
click element xpath=//*[#id='tblProductSelect']/tbody/tr[1]/td
wait until element is not visible loadingDiv
click button id=btnRunReport
wait until element is not visible loadingDiv
get window identifiers
get window names
select window Product Report
when btnRunReport is clicked, the application opens in a new tab and shows the report. this is whats happening when a user goes to the application and generates a report in chrome or in IE.
when i run this test, it works fine in Chrome. the report opens in a new tab and i can select that tab. in IE, it opens in new window, which is expected behavior (reference: https://github.com/SeleniumHQ/selenium/issues/5108).
i have no problem with it opening in new window but i am not able to select that new window. im getting this error - ValueError: Unable to locate window with handle or name or title or URL 'Product Report'
the "get window identifiers" and "get window names" only gets 1 browser. it doesnt seem to recognize the second one. also, on the Suite Teardown, the second window doesnt get closed.
thanks. i hope someone can help me.
Here are my system specs:
OS - Windows 7
Browser - IE11
Robot Framework Version - 3.0.2
IEDriverServer version - 3.4
Selenium2Library version - 1.8.0

Selenium Robot Framework Pop Up Access

I am not able to access a pop up window using selenium webdriver robot framework.
Steps:
site "http://carlightking.com/"
click on "Search By Vehicle" Tab.\
pop up window opens
I tried to access the pop up using "select window" keyword with some locators like id and name but was unsuccessful. It shows
ValueError: Window locator with prefix 'id' is not supported.
How can I select this pop up window and access elements over it?
The Problem is that the popup is inside a iFrame.
<iframe id="popup_selector" src="//carlightking.com/selector/selector-home-popup.php" width="100%"></iframe>
hence you have to explicitly select the iframe first
*** Test Case ***
CarLightKing
Open Browser http://carlightking.com/
Wait Until Page contains Element link=Search by Vehicle 5s
Click Element link=Search by Vehicle
Select Frame id=popup_selector

opening new tab on IE 11 (not new window) using selenium

I am trying to open a new tab in IE 11 by clicking on a link but instead it opens a new window for when clicking on a link. I googled for proper way of doing it but cant figure out how to achive that. Can any one please help?
While clicking manually link opens in a tab but when doing in by selenium it opens a new window.
I am not adding any code as there is not much to add . I clicked link element using webElement.click() and i have disabled persistentHover in driver capability and I am using selenium with java.
String openInNewTab = Keys.chord(Keys.CONTROL,Keys.RETURN);
webElement.sendKeys(openInNewTab);

Selenium Web Driver using PHPUnit to open a currently firefox window from a link

I am using selenium web driver using phpunit, the problem I am facing right now is that I have a link button and when I click this button the current link is opened in a new page and I have no idea about how to oen the currently opened new page, can some one help me about how can I code in PHPUnit to open the currently new opened page
Use "WindowHandles" in PHPunit function
Here is the solution to navigate between the tabs:
If there are two opened tabs in your browser and you want to switch to the next tab, below code will work:
$window_handles = $this->windowHandles();
$this->window($window_handles[1]);
And if you want to switch back to the previous tab just change the index as shown below :
$window_handles = $this->windowHandles();
$this->window($window_handles[0]);