Selenium - Permission denied to get property Location.href

Java, Programação, Selenium 1 Comment

Hoje tive um problema no Selenium, no qual o mesmo não conseguia verificar a url do navegador, jogando uma exceção com a seguinte mensagem:

Permission denied to get property Location.href

Procurando no google, encontrei o seguinte blog:

http://www.woloszyn.org/2008/04/22/selenium-and-the-permission-denied-to-get-property-locationhref-problem/

Este blog mencionava que o problema era causado por um redirect enviado pelo response do servidor. A solução desse blog foi não utilizar o redirect.

Em outro site:

http://www.nabble.com/Permission-denied-to-get-property-Location.href-td8081383.html

Falava que só bastava utilizar o *chrome ou *iehta (no meu código estava sendo utilizado o *firefox). Após esta alteração, tudo voltou a funcionar normalmente.

Archlinux HP Pavilion dv9000 - Suspend e Hibernate

ArchLinux, Linux, Megadeth, Programas, Shows, Uncategorized No Comments

Como mencionado no último post, não estava conseguindo fazer meu notebook hibernar ou suspender no modo gráfico no Archlinux. Após uma simples pesquisa no google encontrei a solução: bastou colocar o meu usuário no grupo “power”.

Upgrade Ubuntu e problema no Postgre

Linux, Postgre, Ubuntu No Comments

Após atualizar o Ubuntu para a versão 8.04, o servidor do postgre não iniciava mais com o seguinte erro:

 * The PostgreSQL server failed to start. Please check the log output:
BRT LOG:  could not load root certificate file "root.crt": no SSL error reported
BRT DETAIL:  Will not verify client certificates.
BRT FATAL:  could not create shared memory segment: Invalid argument
BRT DETAIL:  Failed system call was shmget(key=5432001, size=34504704, 03600).
BRT HINT:  This error usually means that PostgreSQL's request for a shared memory
segment exceeded your kernel's SHMMAX parameter.  You can either reduce the
request size or reconfigure the kernel with larger SHMMAX.  To reduce the request
size (currently 34504704 bytes), reduce PostgreSQL's shared_buffers parameter
(currently 3456) and/or its max_connections parameter (currently 103).
	If the request size is already small, it's possible that it is less than your
kernel's SHMMIN parameter, in which case raising the request size or reconfiguring
SHMMIN is called for.
	The PostgreSQL documentation contains more information about shared
memory configuration.

Foi necessário alterar o arquivo “/etc/postgresql/8.3/main/postgresql.conf”, trocando o valor da variável “shared_buffers” de “32MB” para “26MB”.

Plugins Firefox3

Firefox, Firefox 3, Programas No Comments

Após o upgrade do Ubuntu 7.10 para 8.04 no trabalho, alguns plugins não funcionavam no Firefox 3.
Para fazer os plugins funcionarem, siga estes passos:

  • Faça o download do arquivo .xpi do plugin desejado
  • Abra o arquivo como um arquivo do tipo .zip
  • Dentro do arquivo existe um arquivo chamado “install.rdf”, altere este arquivo e troque o valor de qualquer “maxVersion” por “3.0.0.*”