-
Hi All, Below is the html code <a href=”javascript:leftnavExpand(‘Menu_on_KT_1-003_1854_3’); javascript:leftnavExpand(‘Menu_off_KT_1-003_1854_3’); ” onmouseover=”moveObject(‘Event_KT_1-003_1854_3’, event); setImage(‘ExpandIcon_KT_1-003_1854_3′,’images/icon_expand.gif’);” onmouseout=”layersShowOrHide(‘hidden’,’Event_KT_1-003_1854_3′); setImage(‘ExpandIcon_KT_1-003_1854_3′,’images/icon_blank.gif’);” onclick=”layersShowOrHide(‘visible’,’Lock_all’); LockObject(‘Lock_KT_1-003_1854_3’,event); “><img …
- 284 views
- 1 answers
- 0 votes
-
What is the difference between writing xpath with // and .// notation
- 347 views
- 0 answers
- 0 votes
-
Hi, I have to write a script wherein inside the list tag, there’s one anchor tag & one div tag…the …
- 550 views
- 0 answers
- 0 votes
-
Hi Lakhsay, http://toolsqa.com/selenium-webdriver/how-to-download-files-using-selenium/ i am not able to download will with using given code in above link
- 477 views
- 0 answers
- 0 votes
-
I want to pass driver instance between more than one pom class but i am unable to do that.I just …
- 509 views
- 0 answers
- 0 votes
-
Selenium code: public class FormPractice { public static void main(String[] args) { System.setProperty(“webdriver.gecko.driver”, “C:\\Users\\ABHISHEK\\Desktop\\Garbage\\UDMEY-QA CLICKACADEMY\\geckodriver.exe”); WebDriver driver = new FirefoxDriver(); …
- 687 views
- 1 answers
- 0 votes
-
Hi All, I need to select all the elements under div , store them in a string and compare them …
- 985 views
- 1 answers
- 0 votes
-
the following code is not working, xpath is taken from Firebug locater = By.xpath(“/html/body/font/div/div[2]/div/div/div/div[2]/div[3]/div[1]/div/div/a[1]”); driver.findElement(locater).click(); What is the reason ? …
- 1K views
- 1 answers
- 0 votes
-
Hi, I have menu item with xpth as follows .//*[@id=’ATTENDANCE_href’] .//*[@id=’EMPLOYEES_href’] I used page object model and use this function …
- 1K views
- 0 answers
- 0 votes
-
This question arises in the case of multiple xpath in a script/scripts. There might be various reasons for the slowness …
- 1K views
- 2 answers
- 0 votes
-
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556Hi All,I am trying to select a checkbox on a webpage. But it is throwing me "ElementNotVisisble" exception. When i run (driver.element.click()) from selenium IDE it is selecting the element.But it always fails from the python code.I have copied HTML soruce snipper below as wellIf required i can send complete source file as well.selenium version:selenium-2.45.0Browser:FirefoxPYTHON CODE:>>> from selenium import webdriver>>> driver = webdriver.Firefox()>>> element = driver.find_element_by_xpath("//div[@class='ngSelectionCell ng-scope']/input[@id='browse_data']")>>> element<selenium.webdriver.remote.webelement.WebElement object at 0x0000000002DDC9B0>>>> element.click<bound method WebElement.click of <selenium.webdriver.remote.webelement.WebElement object at 0x0000000002DDC9B0>>>>> element.click()Traceback (most recent call last):File "<stdin>", line 1, in <module>File "C:\Python26\lib\site-packages\selenium\webdriver\remote\webelement.py", line 65, in clickself._execute(Command.CLICK_ELEMENT)File "C:\Python26\lib\site-packages\selenium\webdriver\remote\webelement.py", line 402, in _executereturn self._parent.execute(command, params)File "C:\Python26\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 175, in executeself.error_handler.check_response(response)File "C:\Python26\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 166, in check_responseraise exception_class(message, screen, stacktrace)selenium.common.exceptions.ElementNotVisibleException: Message: Element is not currently visible and so may not be interacted withStacktrace:at fxdriver.preconditions.visible (file:///c:/users/snk/appdata/local/temp/tmp7g9t5w/extensions/fxdriver@googlecode.com/components/command-processor.js:9587)at DelayedCommand.prototype.checkPreconditions_ (file:///c:/users/snk/appdata/local/temp/tmp7g9t5w/extensions/fxdriver@googlecode.com/components/command-processor.js:12257)at DelayedCommand.prototype.executeInternal_/h (file:///c:/users/snk/appdata/local/temp/tmp7g9t5w/extensions/fxdriver@googlecode.com/components/command-processor.js:12274)at DelayedCommand.prototype.executeInternal_ (file:///c:/users/snk/appdata/local/temp/tmp7g9t5w/extensions/fxdriver@googlecode.com/components/command-processor.js:12279)at DelayedCommand.prototype.execute/< (file:///c:/users/snk/appdata/local/temp/tmp7g9t5w/extensions/fxdriver@googlecode.com/components/command-processor.js:12221)```HTML:1234567<div ng-cell="" class=""><div class="ngSelectionCell ng-scope" ng-hide="false"><input tabindex="-1" id="browse_data" ng-model="row.entity.selected" class="ng-selection-checkbox ng-valid ng-dirty ng-valid-parse ng-touched xh-highlight" type="checkbox"><label for="browse_data" class=""></label></div></div>123
- 2K views
- 0 answers
- 0 votes
-
Hi ..when i use fire path I get the xpath first time as -“//*[@id=’preMatrix’]/div[3]/div[2]/span” and if i refresh page the …
- 1K views
- 1 answers
- 0 votes
-
Requirement- In the below html code, I have to write the xpath for selecting the span (with data value as 6,7,8,9,10,18,19,20,21,22 ) tags …
- 2K views
- 2 answers
- 0 votes
-
Hi all, I am working on an Auto-select drop-down which internally is not a Select Currently I am using
12driver.findelement(By.xpath"<my path>").sendkeys("intended-drop-down-value",Keys.ARROW_DOWN,Keys.RETURN);[Currently Simulating keyboard-only action but I will be open to use the mouse action as well, if suitable]…
- 2K views
- 0 answers
- 0 votes
-
I want to fetch out the text of all the elements whose id start with “WebPart_twp” The Complete xpath is …
- 6K views
- 1 answers
- 0 votes
-
Hi All; I’m getting this error.Can anyone please explain me about this? java.lang.IllegalArgumentException: Cannot find elements when the XPath expression …
- 6K views
- 3 answers
- 0 votes
-
Google search goggle logo keeps on change so how to verify that log changed or not?
- 1K views
- 1 answers
- 0 votes
-
Hi, How to click on particular button?, when the all identifiers are same?. Please find the below Screenshot, HTML and …
- 1K views
- 6 answers
- 2 votes
-
I want get some practice on writing the xpath of elements using starts with, contains, text etc with out using …
- 1K views
- 1 answers
- 1 votes
-
Hi, I’m trying to automate recharge page of infibeam.com. but unable to handle modal dialogue box ..below are the steps, …
- 1K views
- 4 answers
- 0 votes
-
I have a button with the following code: <input class=”btn” id=”mypage:formid:relatedScenaiosListId:j_id27:j_id28″ name=”mypage:formid:relatedScenaiosListId:j_id27:j_id28″ onclick=”window.open(‘/apex/newscenario?Opportunity__c=006f00000072n8hAAA’,’_top’, 1);;A4J.AJAX.Submit(‘mypage:formid’,event,{‘similarityGroupingId’:’mypage:formid:relatedScenaiosListId:j_id27:j_id28′,’parameters’:{‘mypage:formid:relatedScenaiosListId:j_id27:j_id28′:’mypage:formid:relatedScenaiosListId:j_id27:j_id28’} } );return false;” value=”New” type=”button”> I’ve …
- 2K views
- 4 answers
- 0 votes
-
Hi, I have a button on my webpage which the text present on the button is changing frequently by clicking …
- 5K views
- 3 answers
- 0 votes