- Eclipse set up and java program exec
- Reading&Undeestanding Eclipse errors and fixing
- Know all about Maven, bitbucket and Pom XML
-
Tuesday, February 5, 2019
Need expertise on
Monday, September 17, 2018
Handle app authenticatication pop up
Scenario:
Authentication pop up comes when ever app URL is hit or navigated through diff pages. Where user has to provide his valid user ID and pwd to proceed . How to handle the pop up as it is window pop up.
Monday, January 8, 2018
Inbuilt Interface for taking Screenshots
Selenium jars have inbuilt interface that could help us take screenshots with less effort.
Sunday, January 7, 2018
Framework - Multiple classes
Framework1: Below mentioned as packages
- Business Components:
1. Multiple java files in each
- Pages --- xpath and actions
-
Play with objects and variables
- Do you know we can create variable of type WebElement and WebObject. And we can make use of that variable to do some actions on the elements.
WebElement a;
set a = obj1.findElementByid("ssds"); 'check if 'set' could be used or not
a.set "abc" ' 'a' could be used like alias name for web element
WebElement a;
set a = obj1.findElementByid("ssds"); 'check if 'set' could be used or not
a.set "abc" ' 'a' could be used like alias name for web element
Wednesday, July 26, 2017
F12 Console : Console.log
You could access elements in Console by enter command: Console.log(<element name>) in the console tab(after F12 is hit). Mostly applicable for Chrome Browser.
Scenario: Access calendar using Selenium Webdriver
Generally Calendar elements have common attribute values(no unique values to consider) even if there are more than one in a web page, So it makes these elements too complex to access and work on them.
So here we use siblings in the xpath. Means we go to the previou or next sibling of this item and create xpath for that item. Once we are able to access that element, write sibling to the xpath to access calendar element.
Testing website: https://www.goibibo.com
code:
<a href="/accounting.html">yyy</a>
<h4>zzz</h4>
<h4> could be accessed using below code:
"//div[@class='canvas- graph']//a[@href='/accounting.html'][i[@class='icon-usd']]/following-sibling::h4"
Subscribe to:
Posts (Atom)